Class: Nendo::Nil
- Inherits:
-
Object
- Object
- Nendo::Nil
- Includes:
- Enumerable
- Defined in:
- lib/nendo/ruby/types.rb
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
49 50 51 |
# File 'lib/nendo/ruby/types.rb', line 49 def car() raise "Error: Nil#car method: pair required, but got ()" end |
#cdr ⇒ Object
52 53 54 |
# File 'lib/nendo/ruby/types.rb', line 52 def cdr() raise "Error: Nil#cdr method: pair required, but got ()" end |
#each ⇒ Object
39 |
# File 'lib/nendo/ruby/types.rb', line 39 def each() end |
#getLastAtom ⇒ Object
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 |
#isDotted ⇒ Object
43 |
# File 'lib/nendo/ruby/types.rb', line 43 def isDotted() false end |
#isNull ⇒ Object
42 |
# File 'lib/nendo/ruby/types.rb', line 42 def isNull() true end |
#lastAtom ⇒ Object
44 |
# File 'lib/nendo/ruby/types.rb', line 44 def lastAtom() false end |
#length ⇒ Object
41 |
# File 'lib/nendo/ruby/types.rb', line 41 def length() 0 end |
#to_arr ⇒ Object
40 |
# File 'lib/nendo/ruby/types.rb', line 40 def to_arr() [] end |
#to_s ⇒ Object
48 |
# File 'lib/nendo/ruby/types.rb', line 48 def to_s() "" end |