except!(*keys) public

Removes the given keys from hash and returns it.

hash = { a: true, b: false, c: nil } hash.except!(:c) # => { a: true, b: false } hash # => { a: true, b: false }
Show source
Register or log in to add new notes.