class Ruspea::Runtime::Nill
Constants
- ARRAY
Public Instance Methods
==(other)
click to toggle source
# File lib/ruspea/runtime/nill.rb, line 49 def ==(other) return true if other.is_a? Nill false end
car()
click to toggle source
# File lib/ruspea/runtime/nill.rb, line 13 def car nil end
cdr()
click to toggle source
# File lib/ruspea/runtime/nill.rb, line 21 def cdr self end
cons(el)
click to toggle source
# File lib/ruspea/runtime/nill.rb, line 29 def cons(el) return List.new(el, self, count: 1) end
count()
click to toggle source
# File lib/ruspea/runtime/nill.rb, line 25 def count 0 end
empty?()
click to toggle source
# File lib/ruspea/runtime/nill.rb, line 33 def empty? true end
eq?(other)
click to toggle source
# File lib/ruspea/runtime/nill.rb, line 41 def eq?(other) self == other end
eql?(other)
click to toggle source
# File lib/ruspea/runtime/nill.rb, line 45 def eql?(other) self == other end
head()
click to toggle source
# File lib/ruspea/runtime/nill.rb, line 9 def head nil end
tail()
click to toggle source
# File lib/ruspea/runtime/nill.rb, line 17 def tail self end
to_a(*_)
click to toggle source
# File lib/ruspea/runtime/nill.rb, line 37 def to_a(*_) ARRAY end