Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/web_translate_it/util/hash_util.rb

Instance Method Summary collapse

Instance Method Details

#stringify_keys!Object

Destructively convert all keys to strings.


31
32
33
34
35
36
# File 'lib/web_translate_it/util/hash_util.rb', line 31

def stringify_keys!
  keys.each do |key|
    self[key.to_s] = delete(key)
  end
  self
end