Class: Nendo::Nil

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/nendo/ruby/types.rb

Instance Method Summary collapse

Instance Method Details

#carObject



49
50
51
# File 'lib/nendo/ruby/types.rb', line 49

def car()
  raise "Error: Nil#car method:  pair required, but got ()"
end

#cdrObject



52
53
54
# File 'lib/nendo/ruby/types.rb', line 52

def cdr()
  raise "Error: Nil#cdr method:  pair required, but got ()"
end

#eachObject



39
# File 'lib/nendo/ruby/types.rb', line 39

def each()               end

#getLastAtomObject

Raises:

  • (RuntimeError)


45
46
47
# File 'lib/nendo/ruby/types.rb', line 45

def getLastAtom()
  raise RuntimeError, "Error: Nil#getLastAtom method:  this cell is not dotted list."
end

#isDottedObject



43
# File 'lib/nendo/ruby/types.rb', line 43

def isDotted()  false    end

#isNullObject



42
# File 'lib/nendo/ruby/types.rb', line 42

def isNull()    true     end

#lastAtomObject



44
# File 'lib/nendo/ruby/types.rb', line 44

def lastAtom()  false    end

#lengthObject



41
# File 'lib/nendo/ruby/types.rb', line 41

def length()    0        end

#to_arrObject



40
# File 'lib/nendo/ruby/types.rb', line 40

def to_arr()    []       end

#to_sObject



48
# File 'lib/nendo/ruby/types.rb', line 48

def to_s()      ""       end