instance(locale = :en) Class Public methods
convert_value(value, options = {}) Instance Protected methods
convert_key(key) Instance Protected methods
with_indifferent_access() Instance Public methods
values_at(*indices) Instance Public methods Returns an array of the values at the specified indices: hash = ActiveSupport::HashWithIndifferentAccess.new hash[:a] = 'x' hash[:b] = 'y' hash.values_at('a', 'b') # => ["x", "y"]
update(other_hash) Instance Public methods Updates the receiver in-place, merging in the hash passed as argument: hash_1 = ActiveSupport::HashWithIndifferentAccess.new hash_1[:key] = 'value' hash_2 = ActiveSupport::HashWithIndifferentAccess.new hash_2[:key] = 'New Value!' hash_1.update(hash_2) # => {"key"=>"New Value!"} The argument can be either an ActiveSupport::HashWithIndifferentAccess or a regular Hash. In either case the merge respects the semantics of indifferent ac
to_options!() Instance Public methods
to_hash() Instance Public methods Convert to a regular hash with string keys.
symbolize_keys() Instance Public methods
stringify_keys!() Instance Public methods
Page 147 of 2275