module Bancard::Utils

Public Instance Methods

stringify_keys(hash) click to toggle source
# File lib/bancard/utils.rb, line 2
def stringify_keys(hash)
  hash.each_with_object(hash.dup.clear) do |(k, v), new_hash|
    new_hash[k.to_s] = v
  end
end