Sha256: 96f95e81915c9659e493bbf479f243c05192a26f24f87ed3cda56284b436fda8
Contents?: true
Size: 180 Bytes
Versions: 15
Compression:
Stored size: 180 Bytes
Contents
class Hash def with_clean_keys self.inject({}) do |mem, (key, value)| clean_key = key.to_s.gsub(/-/,"_").to_sym mem[clean_key] = value mem end end end
Version data entries
15 entries across 15 versions & 4 rubygems