Class: ALib::AutoOrderedHash
- Inherits:
-
OrderedHash
- Object
- Hash
- OrderedHash
- ALib::AutoOrderedHash
- Defined in:
- lib/alib-0.5.1/orderedautohash.rb
Overview
auto vivifying ordered hash that dumps as yaml nicely
Instance Attribute Summary
Attributes inherited from OrderedHash
Instance Method Summary collapse
-
#__class__ ⇒ Object
–}}}.
-
#class ⇒ Object
–}}}.
-
#initialize(*args) ⇒ AutoOrderedHash
constructor
–{{{.
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, #yaml_inline!, #yaml_inline=
Methods inherited from Hash
Constructor Details
#initialize(*args) ⇒ AutoOrderedHash
–{{{
6 7 8 9 10 |
# File 'lib/alib-0.5.1/orderedautohash.rb', line 6 def initialize(*args) #--{{{ super(*args){|a,k| a[k] = __class__.new(*args)} #--}}} end |
Instance Method Details
#__class__ ⇒ Object
–}}}
16 17 18 19 20 |
# File 'lib/alib-0.5.1/orderedautohash.rb', line 16 def __class__ #--{{{ ALib::AutoOrderedHash #--}}} end |