slice!(*keys)
Replaces the hash with only the given keys.
# File activesupport/lib/active_support/core_ext/hash/slice.rb, line 22 def slice!(*keys) replace(slice(*keys)) end