Skip to content

Instantly share code, notes, and snippets.

@jakalada
Created June 21, 2009 17:51
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 jakalada/133590 to your computer and use it in GitHub Desktop.
Save jakalada/133590 to your computer and use it in GitHub Desktop.
class DeepHash < Hash
def initialize
self.default_proc = Proc.new {|hash, key| hash[key] = DeepHash.new}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment