Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/web_translate_it/util/hash_util.rb
Instance Method Summary collapse
-
#stringify_keys! ⇒ Object
Destructively convert all keys to strings.
Instance Method Details
#stringify_keys! ⇒ Object
Destructively convert all keys to strings.
36 37 38 39 40 41 |
# File 'lib/web_translate_it/util/hash_util.rb', line 36 def stringify_keys! keys.each do |key| self[key.to_s] = delete(key) end self end |