Class | Hashery::OrderedHash |
In: |
lib/hashery/ordered_hash.rb
|
Parent: | ::Hash |
OrderedHash is a simple ordered hash implmentation, for users of Ruby 1.8.7 or less.
NOTE: As of Ruby 1.9+ this class is not needed, since Ruby 1.9‘s standard Hash tracks inseration order.
This implementation derives from the same class in ActiveSupport library.
When replacing with another hash, the initial order of our keys must come from the other hash, ordered or not.