aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-05-07 18:07:42 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-05-07 18:07:42 +0530
commit7194b393a611727fb36e8f586910e75db1bae746 (patch)
tree75cecb2ef4e8dc867515292d87a84f0166f497bf /activesupport/lib
parent162bf8ffb1bef8729f22e2adfae7b1a5d096173d (diff)
downloadrails-7194b393a611727fb36e8f586910e75db1bae746.tar.gz
rails-7194b393a611727fb36e8f586910e75db1bae746.tar.bz2
rails-7194b393a611727fb36e8f586910e75db1bae746.zip
fix comment alignment
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/core_ext/array/uniq_by.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/core_ext/array/uniq_by.rb b/activesupport/lib/active_support/core_ext/array/uniq_by.rb
index bd5c7a187f..9c5f97b0e9 100644
--- a/activesupport/lib/active_support/core_ext/array/uniq_by.rb
+++ b/activesupport/lib/active_support/core_ext/array/uniq_by.rb
@@ -1,8 +1,7 @@
class Array
- # Return an unique array based on the criteria given as a proc.
+ # Returns an unique array based on the criteria given as a +Proc+.
#
- # [1, 2, 3, 4].uniq_by { |i| i.odd? }
- # # => [1, 2]
+ # [1, 2, 3, 4].uniq_by { |i| i.odd? } # => [1, 2]
#
def uniq_by
hash, array = {}, []