Remove odd spaces [ci skip]

This commit is contained in:
Ryuta Kamizono 2018-11-21 17:08:06 +09:00
parent 32695069b1
commit 50d1e00625

@ -28,8 +28,8 @@ def slice(*keys)
# Returns a hash containing the removed key/value pairs.
#
# hash = { a: 1, b: 2, c: 3, d: 4 }
# hash.slice!(:a, :b) # => {:c=>3, :d=>4 }
# hash # => {:a=>1, :b=>2 }
# hash.slice!(:a, :b) # => {:c=>3, :d=>4}
# hash # => {:a=>1, :b=>2}
def slice!(*keys)
omit = slice(*self.keys - keys)
hash = slice(*keys)