diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-11-21 17:08:06 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-11-21 17:08:06 +0900 |
commit | 50d1e00625091bf7f4c84afbdabb9006402a94ea (patch) | |
tree | e8d8c6c29f35fd05922bdf5e734529ad811b11ff /activesupport | |
parent | 32695069b10a79c13312b189d6508f8ed4c6186a (diff) | |
download | rails-50d1e00625091bf7f4c84afbdabb9006402a94ea.tar.gz rails-50d1e00625091bf7f4c84afbdabb9006402a94ea.tar.bz2 rails-50d1e00625091bf7f4c84afbdabb9006402a94ea.zip |
Remove odd spaces [ci skip]
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/hash/slice.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/slice.rb b/activesupport/lib/active_support/core_ext/hash/slice.rb index fb5887d57b..e07a5498ff 100644 --- a/activesupport/lib/active_support/core_ext/hash/slice.rb +++ b/activesupport/lib/active_support/core_ext/hash/slice.rb @@ -28,8 +28,8 @@ class Hash # 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) |