extract!(*keys)
Instance Public methods
Removes and returns the key/value pairs matching the given keys.
1 2 | { a: 1 , b: 2 , c: 3 , d: 4 }.extract!( :a , :b ) # => {:a=>1, :b=>2} { a: 1 , b: 2 }.extract!( :a , :x ) # => {:a=>1} |
Please login to continue.