delete_if()
public
Deletes every element of the set for which block evaluates to true, and
returns self. Returns an enumerator if no block is given.
Show source
def delete_if
block_given? or return enum_for(__method__) { size }
select { |o| yield o }.each { |o| @hash.delete(o) }
self
end