Impl. NilClass#to_a, #to_f, #to_h, #to_i
Cover methods in mruby-object-ext/object.c
@@ -4,6 +4,22 @@ class NilClass
def dup
self
end
+
+ def to_a
+ []
+ end
+
+ def to_f
+ 0.0
+ end
+
+ def to_h
+ {}
+ end
+
+ def to_i
+ 0
+ end
end
class TrueClass
