Class: MagicHash

Inherits:
Object
  • Object
show all
Defined in:
lib/magic_hash.rb,
lib/magic_hash/version.rb

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.newObject



4
5
6
# File 'lib/magic_hash.rb', line 4

def self.new()
  Hash.new(&(p = lambda{|hsh, key| hsh[key] = Hash.new(&p)}))
end