lib/lit/serializer.rb in litl-0.1.0 vs lib/lit/serializer.rb in litl-0.1.1
- old
+ new
@@ -32,10 +32,11 @@
serialize_option(object)
elsif object.is_a?(String) ||
object.is_a?(Integer) ||
object.is_a?(Float) ||
object == true ||
- object == false
+ object == false ||
+ object.nil?
object
else
raise InvalidObjectError, "invalid object: #{object}"
end
end