Sha256: 5c98ef5a2c0a269ca6baaa9f05780f77a45b03e37f8db77e8296c0e53ce14b93
Contents?: true
Size: 208 Bytes
Versions: 30
Compression:
Stored size: 208 Bytes
Contents
class Hash def symbolize_keys! keys.each do |key| unless key.is_a?(Symbol) || (new_key = key.to_sym).nil? self[new_key] = self[key] delete(key) end end self end end
Version data entries
30 entries across 30 versions & 11 rubygems