Class: ALib::AutoOrderedHash

Inherits:
OrderedHash show all
Defined in:
lib/alib.rb,
lib/alib-0.3.1.rb

Overview

auto vivifying ordered hash that dumps as yaml nicely

Instance Attribute Summary

Attributes inherited from OrderedHash

#order

Instance Method Summary collapse

Methods inherited from OrderedHash

#==, [], #clear, #delete, #delete_if, #each, #each_key, #each_value, #inspect, #invert, #keys, #merge, #orig_store, #pop, #push, #reject, #reject!, #replace, #select, #shift, #store, #store_only, #to_a, #to_s, #unshift, #update, #values

Constructor Details

#initialize(*args) ⇒ AutoOrderedHash

–{{{



1500
1501
1502
1503
1504
# File 'lib/alib.rb', line 1500

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

Instance Method Details

#classObject

–}}}



1505
1506
1507
1508
1509
# File 'lib/alib.rb', line 1505

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