Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/zable/hash.rb
Instance Method Summary collapse
Instance Method Details
#reject_empty_values ⇒ Object
2 3 4 |
# File 'lib/zable/hash.rb', line 2 def reject_empty_values reject { |k, v| v.respond_to?(:empty?) ? v.empty? : !v } end |