Created
June 11, 2018 15:21
-
-
Save aeris/66fe472ed6dfe9d0aa2db2bc69402bda 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
[42] pry(main)> f = Hash.new { [] } | |
=> {} | |
[43] pry(main)> f[:foo] << :bar | |
=> [:bar] | |
[44] pry(main)> f | |
=> {} | |
[45] pry(main)> f.keys | |
=> [] | |
[46] pry(main)> f[:bar] | |
=> [] | |
[47] pry(main)> f[:foo] | |
=> [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment