Let\'s say I have a Gift object with @name = \"book\" & @price = 15.95. What\'s the best way to convert that to the Hash {na
Gift
@name = \"book\"
@price = 15.95
{na
Just say (current object) .attributes
.attributes
.attributes returns a hash of any object. And it's much cleaner too.
hash
object