-
-
Save anonymous/542a7ba508cab1379b26b0828b15ce7d to your computer and use it in GitHub Desktop.
This file contains 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
[1] pry(main)> def foo(hash_thing) | |
[1] pry(main)* hash_thing[:foo] | |
[1] pry(main)* end | |
=> :foo | |
[2] pry(main)> hash = { foo: 'bar' } | |
=> {:foo=>"bar"} | |
[3] pry(main)> foo hash | |
=> "bar" | |
[4] pry(main)> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment