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.



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