Sha256: e339a0249181b0803839a3d881bb10cd657338e2f8979750fd049f99b086df46
Contents?: true
Size: 182 Bytes
Versions: 77
Compression:
Stored size: 182 Bytes
Contents
class Hash def symbolize_keys! keys.each do |key| self[(key.to_sym rescue key)] = delete(key) if key.respond_to?(:to_sym) && !key.is_a?(Fixnum) end self end end
Version data entries
77 entries across 77 versions & 12 rubygems