class Hash

Public Instance Methods

deep_stringify_keys() click to toggle source
# File lib/encrypter_decrypter/helper.rb, line 19
def deep_stringify_keys
  new_hash = {}
  self.each do |key, value|
    new_hash.merge!(key.to_s => (value.is_a?(Hash) ? value.deep_stringify_keys : value))
  end
end