Sha256: 2fed9bfcc8dc511d60760d4351b2c509ecfa00c17ce5c031a5cebf85cc27ec90
Contents?: true
Size: 258 Bytes
Versions: 2
Compression:
Stored size: 258 Bytes
Contents
module Convertator module Utils def symbolize_keys(array) array.each_with_object({}) do |(k, v), memo| memo[normalize_currency(k)] = v end end def normalize_currency(currency) currency.to_sym.upcase end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
convertator-0.3.1 | lib/convertator/utils.rb |
convertator-0.3.0 | lib/convertator/utils.rb |