nullobject
nullobject copied to clipboard
Add support for to_hash
What about #to_h
? It was added as a convention in Ruby 2.0, and is meant to be used when you want to do an explicit conversion of an object to a Hash
, while #to_hash
method is for implicit conversion.
Agreed, Ruby 2.0 support will be good to have here
Done