Skip to content

Instantly share code, notes, and snippets.

@ryanjosephking
Created May 6, 2012 17:29
Show Gist options
  • Select an option

  • Save ryanjosephking/2623413 to your computer and use it in GitHub Desktop.

Select an option

Save ryanjosephking/2623413 to your computer and use it in GitHub Desktop.
#!/bin/env ruby
def broken
people = Hash.new([])
people['a'].push 1
people['b'].push 2
p people
end
broken
# only prints: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment