instance method
stringify_keys!
Ruby on Rails 7.0.10
Since v3.0.20Signature
stringify_keys!()
Destructively converts all keys to strings. Same as stringify_keys, but modifies self.
Source
# File activesupport/lib/active_support/core_ext/hash/keys.rb, line 16
def stringify_keys!
transform_keys!(&:to_s)
end
Defined in activesupport/lib/active_support/core_ext/hash/keys.rb line 16
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Hash