Sha256: 202d14d4dbae916bbaddc623fa43a1327dd7c20da8b94cd796b2a07712b22ddd
Contents?: true
Size: 278 Bytes
Versions: 1
Compression:
Stored size: 278 Bytes
Contents
class Hash # str8 from activesupport core_ext/hash/keys.rb def symbolize_keys inject({}) do |options, (key, value)| options[(key.to_sym rescue key) || key] = value options end end def symbolize_keys! self.replace(self.symbolize_keys) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
subprocess-0.1.6 | lib/core_ext/hash.rb |