diff options
author | Sebastian Martinez <sebastian@wyeworks.com> | 2011-05-10 20:55:31 -0300 |
---|---|---|
committer | Sebastian Martinez <sebastian@wyeworks.com> | 2011-05-10 20:55:31 -0300 |
commit | ab880b9eb0aab83e9c000a89e9f0ca636a8b9f78 (patch) | |
tree | 6655541e9985bbd7ecc49929fe3cf732a62736fb /activesupport/lib/active_support/core_ext/hash | |
parent | 71d6b088ec135cb3c4bc15ec45feb7449aee0c97 (diff) | |
download | rails-ab880b9eb0aab83e9c000a89e9f0ca636a8b9f78.tar.gz rails-ab880b9eb0aab83e9c000a89e9f0ca636a8b9f78.tar.bz2 rails-ab880b9eb0aab83e9c000a89e9f0ca636a8b9f78.zip |
Follow code conventions on docs
Diffstat (limited to 'activesupport/lib/active_support/core_ext/hash')
-rw-r--r-- | activesupport/lib/active_support/core_ext/hash/slice.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/slice.rb b/activesupport/lib/active_support/core_ext/hash/slice.rb index e4a864c20f..d7fb2da0fb 100644 --- a/activesupport/lib/active_support/core_ext/hash/slice.rb +++ b/activesupport/lib/active_support/core_ext/hash/slice.rb @@ -21,7 +21,7 @@ class Hash # 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} + # {:a => 1, :b => 2, :c => 3, :d => 4}.slice!(:a, :b) # => {:c => 3, :d => 4} def slice!(*keys) keys = keys.map! { |key| convert_key(key) } if respond_to?(:convert_key) omit = slice(*self.keys - keys) |