Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/journey/core-ext/hash.rb

Instance Method Summary collapse

Instance Method Details

#keep_ifObject



4
5
6
7
8
# File 'lib/journey/core-ext/hash.rb', line 4

def keep_if
  each do |k,v|
    delete(k) unless yield(k,v)
  end
end