Sha256: 9f1ad0692a7d64d59cba05bd705c9e3780d3779c1e278a8ce0d2c484ba40b31a
Contents?: true
Size: 125 Bytes
Versions: 25
Compression:
Stored size: 125 Bytes
Contents
class Hash # Remove nil and empty keys. def compact delete_if { |key, value| value.nil? || value.empty? } end end
Version data entries
25 entries across 25 versions & 2 rubygems
Version | Path |
---|---|
typus-0.9.21 | lib/typus/hash.rb |
typus-0.9.20 | lib/typus/hash.rb |
typus-0.9.19 | lib/typus/hash.rb |
typus-0.9.18 | lib/typus/hash.rb |
typus-0.9.17 | lib/typus/hash.rb |