lib/abstractivator/cons.rb in abstractivator-0.8.0 vs lib/abstractivator/cons.rb in abstractivator-0.10.0
- old
+ new
@@ -1,8 +1,9 @@
module Abstractivator
module Cons
Nil = Object.new
+ Nil.define_singleton_method(:empty?) { true }
def empty_list
Nil
end
@@ -53,6 +54,6 @@
end
end
extend self
end
-end
\ No newline at end of file
+end