Sha256: 2cbe120a3c3a1a1d11a6032ba0d7e786ccca20c02c0265581eebc8b88cc8049d
Contents?: true
Size: 305 Bytes
Versions: 12
Compression:
Stored size: 305 Bytes
Contents
#Object class Object def deep_symbolize_keys self end end class Hash def deep_symbolize_keys symbolize_keys.tap { |h| h.each { |k, v| h[k] = v.deep_symbolize_keys } } end end #Array class Array def deep_symbolize_keys map(&:deep_symbolize_keys) end end
Version data entries
12 entries across 12 versions & 1 rubygems