Skip to content

Comments

Add support for to_hash#7

Open
bbhoss wants to merge 2 commits intomartinciu:masterfrom
bbhoss:master
Open

Add support for to_hash#7
bbhoss wants to merge 2 commits intomartinciu:masterfrom
bbhoss:master

Conversation

@bbhoss
Copy link

@bbhoss bbhoss commented Mar 15, 2013

No description provided.

@dkubb
Copy link

dkubb commented Mar 16, 2013

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.

@nilbus
Copy link
Contributor

nilbus commented Mar 16, 2013

Agreed, Ruby 2.0 support will be good to have here

@bbhoss
Copy link
Author

bbhoss commented Mar 16, 2013

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants