method
except!
v4.2.1 -
Show latest stable
- Class:
Hash
except!(*keys)public
Replaces the hash without the given keys.
hash = { a: true, b: false, c: nil} hash.except!(:c) # => { a: true, b: false} hash # => { a: true, b: false }
except!(*keys)Replaces the hash without the given keys.
hash = { a: true, b: false, c: nil} hash.except!(:c) # => { a: true, b: false} hash # => { a: true, b: false }