Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/i_wonder/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#delete_blankObject



2
3
4
# File 'lib/i_wonder/core_ext.rb', line 2

def delete_blank
  delete_if{|k, v| v.blank? or v.instance_of?(Hash) && v.delete_blank.blank?}
end