Version
1.2006.05.23 (change of the first number means Big Change)
Description
Hash which auto initializes it's children.
Usage
(see examples directory under the ruby gems root directory)
require 'rubygems'
require 'auto_hash'
ah = AutoHash.new
ah['section one']['param one'] = 4
ah['section one']['param two'] = 5
ah['section one']['param three'] = 2
ah['section one']['param four'] = 3
p ah
# {"section one"=>{"param one"=>4, "param four"=>3, "param three"=>2, "param two"=>5}}
p ah['section one'].keys
# ["param one", "param four", "param three", "param two"]
Source
http://simplypowerful.1984.cz/goodlibs/1.2006.05.23
Author
Ara.T.Howard (/Ara/dot/T/dot/Howard/at/noaa/dot/gov)
Licence
You can redistribute it and/or modify it under the same terms of Ruby's license;
either the dual license version in 2003, or any later version.