Skip to content

Instantly share code, notes, and snippets.

@workmad3
Created February 21, 2012 20:15
Show Gist options
  • Save workmad3/1878609 to your computer and use it in GitHub Desktop.
Save workmad3/1878609 to your computer and use it in GitHub Desktop.
y = {}
x = Hash.new(y)
x[:foo][:bar] = 1
p y[:bar]
p x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment