Class: ALib::AutoHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/alib.rb,
lib/alib-0.3.1.rb

Overview

auto vivifying hash that dumps as yaml nicely

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ AutoHash

–{{{



1264
1265
1266
1267
1268
# File 'lib/alib.rb', line 1264

def initialize(*args)
#--{{{
  super(*args){|a,k| a[k] = AutoHash::new(*args)}
#--}}}
end

Instance Method Details

#classObject

–}}}



1269
1270
1271
1272
1273
# File 'lib/alib.rb', line 1269

def class
#--{{{
  Hash
#--}}}
end