Class: Twoffein::Util
- Inherits:
-
Object
- Object
- Twoffein::Util
- Defined in:
- lib/twoffein-client/util.rb
Class Method Summary collapse
Class Method Details
.compact!(hash) ⇒ Object
3 4 5 |
# File 'lib/twoffein-client/util.rb', line 3 def self.compact!(hash) hash.reject! { |k,v| v.nil? || v.empty? } end |