without(*elements)
public
Returns a copy of the enumerable without the specified elements.
["David", "Rafael", "Aaron", "Todd"].without "Aaron", "Todd"
=> ["David", "Rafael"]
{foo: 1, bar: 2, baz: 3}.without :bar
=> {foo: 1, baz: 3}
# File activesupport/lib/active_support/core_ext/enumerable.rb, line 72
def without(*elements)
reject { |element| elements.include?(element) }
end