fix comment alignment
This commit is contained in:
parent
162bf8ffb1
commit
7194b393a6
@ -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 = {}, []
|
||||
|
Loading…
Reference in New Issue
Block a user