Method: Hash#with_indifferent_access
- Defined in:
- activesupport/lib/active_support/core_ext/hash/indifferent_access.rb
#with_indifferent_access ⇒ Object Also known as: nested_under_indifferent_access
Returns an ActiveSupport::HashWithIndifferentAccess out of its receiver:
{ a: 1 }.with_indifferent_access['a'] # => 1
9 10 11 |
# File 'activesupport/lib/active_support/core_ext/hash/indifferent_access.rb', line 9 def with_indifferent_access ActiveSupport::HashWithIndifferentAccess.new(self) end |