Sha256: 510987cd316a5b8cf0bb20f76ab7a58b90feb405d7980ad725551765005ae2f0
Contents?: true
Size: 214 Bytes
Versions: 1
Compression:
Stored size: 214 Bytes
Contents
module Bifubao 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 |
---|---|
bifubao-0.0.1 | lib/bifubao/utils.rb |