Sha256: 49cb058398db4223693e9a0ea760701cabe3cb423b95dd7622ba777c16cabee4
Contents?: true
Size: 249 Bytes
Versions: 77
Compression:
Stored size: 249 Bytes
Contents
class Object def stringify_keys self.each_with_object({}) { |(key, value), hash| hash[key.to_s] = value } end def symbolize_keys self.each_with_object({}) { |(key, value), hash| hash[key.to_sym] = value } end end
Version data entries
77 entries across 77 versions & 1 rubygems