Class OrderedHash
In: lib/hashery/orderedhash.rb
Parent: ::Hash

OrderedHash

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.

Methods

[]   []=   clear   delete   delete_if   each   each_key   each_value   initialize_copy   inspect   keys   merge   merge!   new   reject   reject!   replace   shift   sync_keys!   to_a   to_hash   to_yaml   to_yaml_type   values  

Public Class methods

Public Instance methods

When replacing with another hash, the initial order of our keys must come from the other hash, ordered or not.

[Validate]