reject!(&block)
public
Equivalent to Set#delete_if, but returns nil if no changes were made.
Returns an enumerator if no block is given.
Show source
def reject!(&block)
block or return enum_for(__method__) { size }
n = size
delete_if(&block)
self if size != n
end