Class: Nendo::Nil
Instance Method Summary collapse
- #car ⇒ Object
- #cdr ⇒ Object
- #each ⇒ Object
- #getLastAtom ⇒ Object
- #isDotted ⇒ Object
- #isNull ⇒ Object
- #lastAtom ⇒ Object
- #length ⇒ Object
- #to_arr ⇒ Object
- #to_s ⇒ Object
Instance Method Details
#car ⇒ Object
56 57 58 |
# File 'lib/nendo.rb', line 56 def car() raise "Error: Nil#car method: pair required, but got ()" end |
#cdr ⇒ Object
59 60 61 |
# File 'lib/nendo.rb', line 59 def cdr() raise "Error: Nil#cdr method: pair required, but got ()" end |
#each ⇒ Object
46 |
# File 'lib/nendo.rb', line 46 def each() end |
#getLastAtom ⇒ Object
52 53 54 |
# File 'lib/nendo.rb', line 52 def getLastAtom() raise RuntimeError, "Error: Nil#getLastAtom method: this cell is not dotted list." end |
#isDotted ⇒ Object
50 |
# File 'lib/nendo.rb', line 50 def isDotted() false end |
#isNull ⇒ Object
49 |
# File 'lib/nendo.rb', line 49 def isNull() true end |
#lastAtom ⇒ Object
51 |
# File 'lib/nendo.rb', line 51 def lastAtom() false end |
#length ⇒ Object
48 |
# File 'lib/nendo.rb', line 48 def length() 0 end |
#to_arr ⇒ Object
47 |
# File 'lib/nendo.rb', line 47 def to_arr() [] end |
#to_s ⇒ Object
55 |
# File 'lib/nendo.rb', line 55 def to_s() "" end |