Flowdock
method

without

Importance_1
Ruby on Rails latest stable (v5.2.3) - 0 notes - Class: Enumerable
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}
Show source
Register or log in to add new notes.