Sha256: fd816e27748673cb1cc8d069470ca8473c05ec5a6883d0af057b85245ed88973

Contents?: true

Size: 213 Bytes

Versions: 1

Compression:

Stored size: 213 Bytes

Contents

module Alipay
  module Utils
    def self.stringify_keys(hash)
      new_hash = {}
      hash.each do |key, value|
        new_hash[(key.to_s 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.2 lib/alipay/utils.rb