Type:
Class

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.

select

select(*args, &block) Instance Public methods

2015-06-20 00:00:00
to_yaml_type

to_yaml_type() Instance Public methods

2015-06-20 00:00:00
nested_under_indifferent_access

nested_under_indifferent_access() Instance Public methods

2015-06-20 00:00:00
encode_with

encode_with(coder) Instance Public methods

2015-06-20 00:00:00
extractable_options?

extractable_options?() Instance Public methods Returns true to make sure that

2015-06-20 00:00:00
reject

reject(*args, &block) Instance Public methods

2015-06-20 00:00:00