instance method
extract!
Ruby on Rails 3.0.20
Since v3.0.20Signature
extract!(*keys)
No documentation comment.
Parameters
-
keysrest
Source
# File activesupport/lib/active_support/core_ext/hash/slice.rb, line 33
def extract!(*keys)
result = {}
keys.each {|key| result[key] = delete(key) }
result
end
Defined in activesupport/lib/active_support/core_ext/hash/slice.rb line 33
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Hash