instance method
except!
Ruby on Rails 3.0.20
Since v3.0.20Signature
except!(*keys)
Replaces the hash without the given keys.
Parameters
-
keysrest
Source
# File activesupport/lib/active_support/core_ext/hash/except.rb, line 19
def except!(*keys)
keys.each { |key| delete(key) }
self
end
Defined in activesupport/lib/active_support/core_ext/hash/except.rb line 19
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Hash