Class: Hash
Class Method Summary collapse
-
.autonew(*args) ⇒ Object
gist.github.com/potatosalad/760726 auto creates children from: rubyworks.github.com/facets/doc/api/core/Hash.html.
Instance Method Summary collapse
Class Method Details
.autonew(*args) ⇒ Object
gist.github.com/potatosalad/760726 auto creates children from: rubyworks.github.com/facets/doc/api/core/Hash.html
70 71 72 73 |
# File 'lib/slimkeyfy/slimutils/hash_merging.rb', line 70 def self.autonew(*args) leet = lambda { |hsh, key| hsh[key] = new( &leet ) } new(*args,&leet) end |