Sha256: 42789e753db09eadc791100e894d7003600061b41f89244f20b1436f62ed42a7
Contents?: true
Size: 215 Bytes
Versions: 1
Compression:
Stored size: 215 Bytes
Contents
module Alipay module Utils def self.symbolize_keys(hash) new_hash = {} hash.each do |key, value| new_hash[(key.to_sym rescue key) || key] = value end new_hash end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alipay-0.0.1 | lib/alipay/utils.rb |