DEPRECATED: ActiveSupport::OrderedHash
implements a hash that preserves insertion order.
oh = ActiveSupport::OrderedHash.new
oh[:a] = 1
oh[:b] = 2
oh.keys # => [:a, :b], this order is guaranteed
Also, maps the omap
feature for YAML files (See yaml.org/type/omap.html) to support ordered items when loading from yaml.
ActiveSupport::OrderedHash
is namespaced to prevent conflicts with other implementations.
Methods
- E
- N
- R
- S
- T
Instance Public methods
encode_with(coder) Link
extractable_options?() Link
Returns true to make sure that this hash is extractable via Array#extract_options!