Sha256: 5eecefc61d7c9a54e28ea725e5312218ef2ab3c01eadd74f224b512460c160ca
Contents?: true
Size: 198 Bytes
Versions: 1
Compression:
Stored size: 198 Bytes
Contents
module Transproc register(:symbolize_keys) do |hash| Hash[hash.map { |k, v| [k.to_sym, v] }] end register(:map) do |hash, mapping| Hash[hash.map { |k, v| [mapping[k], v] }] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
transproc-0.0.1 | lib/transproc/hash.rb |