Sha256: 8ffc72c061ccd7018ee6c9a2fccc6ba3db1b5b30ddb0b884b4eb020417946c1f
Contents?: true
Size: 381 Bytes
Versions: 1
Compression:
Stored size: 381 Bytes
Contents
# # auto vivifying ordered hash that dumps as yaml nicely # class AutoOrderedHash < OrderedHash #--{{{ def initialize(*args) #--{{{ super(*args){|a,k| a[k] = __class__.new(*args)} #--}}} end def class # for nice yaml #--{{{ Hash #--}}} end def __class__ #--{{{ AutoOrderedHash #--}}} end #--}}} end # class AutoOrderedHash OrderedAutoHash = AutoOrderedHash
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
orderedhash-0.0.1 | lib/orderedautohash.rb |