Sha256: 5006550aa0cdcb5efa8e35b759c5312b3e1b5cb3e583c9b77276c48185920599
Contents?: true
Size: 207 Bytes
Versions: 3
Compression:
Stored size: 207 Bytes
Contents
class Hash def symbolize_keys each_with_object({}) { |(k, v), h| h[k.to_sym] = v.is_a?(Hash) ? v.symbolize_keys : v } end def deep_dup Marshal.load Marshal.dump(self) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dns_one-0.5.22 | lib/dns_one/core_ext/hash.rb |
dns_one-0.5.21 | lib/dns_one/core_ext/hash.rb |
dns_one-0.5.20 | lib/dns_one/core_ext/hash.rb |