instance method
[]
Ruby on Rails edge
Since v5.0.7.2Signature
[](key)
Same as ‘Hash#[]` where the key passed as argument can be either a string or a symbol:
“‘ counters = ActiveSupport::HashWithIndifferentAccess.new counters = 1
Parameters
-
keyreq
Source
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 210
def [](key)
super(convert_key(key))
end
Defined in activesupport/lib/active_support/hash_with_indifferent_access.rb line 210
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::HashWithIndifferentAccess