Skip to content

Instantly share code, notes, and snippets.

@gorkunov
Created October 12, 2012 11:11
Show Gist options
  • Save gorkunov/3878727 to your computer and use it in GitHub Desktop.
Save gorkunov/3878727 to your computer and use it in GitHub Desktop.
d = Hash.new { |h, k| h[k] = Hash.new(&h.default_proc) }
d[:a][:b][:c][:d][:e] = 1
puts d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment