method

except!

v5.0.0.1 - 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 }