method
except!
v7.0.0 -
Show latest stable
- Class:
Hash
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 }