instance method
stringify_keys!
Ruby on Rails 3.1.12
Since v3.0.20Signature
stringify_keys!()
Destructively convert all keys to strings.
Source
# File activesupport/lib/active_support/core_ext/hash/keys.rb, line 8
def stringify_keys!
keys.each do |key|
self[key.to_s] = delete(key)
end
self
end
Defined in activesupport/lib/active_support/core_ext/hash/keys.rb line 8
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Hash