Class: Hash

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

Instance Method Summary collapse

Instance Method Details

#delete_blankObject



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

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