instance method
with_indifferent_access
Ruby on Rails 7.2.3
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 9
def with_indifferent_access
ActiveSupport::HashWithIndifferentAccess.new(self)
end
Defined in activesupport/lib/active_support/core_ext/hash/indifferent_access.rb line 9
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Hash