Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/chef/knife/profitbricks_base.rb
Overview
compact method will remove nil values from Hash
Instance Method Summary collapse
Instance Method Details
#compact ⇒ Object
77 78 79 |
# File 'lib/chef/knife/profitbricks_base.rb', line 77 def compact delete_if { |_k, v| v.nil? } end |