instance method
with_indifferent_access
Ruby on Rails 4.2.9
Since v3.0.20Signature
with_indifferent_access()
Returns an ActiveSupport::HashWithIndifferentAccess out of its receiver:
{ a: 1 }.with_indifferent_access['a'] # => 1
Source
# File activesupport/lib/active_support/core_ext/hash/indifferent_access.rb, line 8
def with_indifferent_access
ActiveSupport::HashWithIndifferentAccess.new_from_hash_copying_default(self)
end
Defined in activesupport/lib/active_support/core_ext/hash/indifferent_access.rb line 8
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Hash