Created
February 24, 2015 15:54
-
-
Save latompa/c4d67fc89616798f7d8f to your computer and use it in GitHub Desktop.
Hashie::Mash vs OpenStruct
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(Hashie::Mash.new :key => 5).key | |
ArgumentError: wrong number of arguments (0 for 1) | |
from (irb):1:in `key' | |
from (irb):1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(OpenStruct.new :key => 5).key | |
=> 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment