Flowdock
method

slice!

Importance_1
v3.2.3 - Show latest stable - 0 notes - Class: Hash
slice!(*keys) public

Replaces the hash with only the given keys. Returns a hash contained the removed key/value pairs

{:a => 1, :b => 2, :c => 3, :d => 4}.slice!(:a, :b) # => {:c => 3, :d => 4}
Show source
Register or log in to add new notes.