lib/eotb.rb in eotb-0.4.0 vs lib/eotb.rb in eotb-0.4.1
- old
+ new
@@ -24,9 +24,11 @@
end
def self.format(object)
if object.respond_to? :to_json
object.to_json
+ elsif object.respond_to? :to_hash
+ object.to_hash.to_json
else
object.inspect
end
end
\ No newline at end of file