Hash.extract! is my latest fun discovery in Rails' collection of Ruby extensions.
It returns a new hash of the keys you name, while simultaneously removing those keys from the original hash. It's also safe to use when the named key doesn't appear in the original hash.
