Skip to content

Instantly share code, notes, and snippets.

@iamjarvo
Created May 13, 2012 02:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamjarvo/36acb89aeb44dfee501e to your computer and use it in GitHub Desktop.
Save iamjarvo/36acb89aeb44dfee501e to your computer and use it in GitHub Desktop.
hash = Hash.new([])
hash[:one] << "uno"
if i do hash i get back
{}
when i do hash[:one] i get back
["uno"]
hash[:two] << "dos"
hash[:one]
=> ["uno", "dos"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment