Class: Apricot::List::EmptyList
Constant Summary
EMPTY_LIST
Instance Attribute Summary
#count, #head, #tail
Instance Method Summary
collapse
[], #cons, #inspect, #to_list, #to_seq
Methods included from Seq
#<=>, #cons, #hash, #last, #rest, #to_s, #to_seq
Methods included from Enumerable
#to_list
Constructor Details
Returns a new instance of EmptyList.
61
62
63
|
# File 'lib/apricot/list.rb', line 61
def initialize
@count = 0
end
|
Instance Method Details
65
66
|
# File 'lib/apricot/list.rb', line 65
def each
end
|
#empty? ⇒ Boolean
68
69
70
|
# File 'lib/apricot/list.rb', line 68
def empty?
true
end
|
72
73
74
|
# File 'lib/apricot/list.rb', line 72
def first
nil
end
|
76
77
78
|
# File 'lib/apricot/list.rb', line 76
def next
nil
end
|