Class: AutoOrderedHash
- Inherits:
-
OrderedHash
- Object
- Hash
- OrderedHash
- AutoOrderedHash
- Defined in:
- lib/orderedautohash.rb
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=
Constructor Details
#initialize(*args) ⇒ AutoOrderedHash
–{{{
8 9 10 11 12 |
# File 'lib/orderedautohash.rb', line 8 def initialize(*args) #--{{{ super(*args){|a,k| a[k] = __class__.new(*args)} #--}}} end |
Instance Method Details
#__class__ ⇒ Object
–}}}
18 19 20 21 22 |
# File 'lib/orderedautohash.rb', line 18 def __class__ #--{{{ AutoOrderedHash #--}}} end |
#class ⇒ Object
–}}}
13 14 15 16 17 |
# File 'lib/orderedautohash.rb', line 13 def class # for nice yaml #--{{{ Hash #--}}} end |