lib/core/facets/enumerable/duplicates.rb in facets-2.4.5 vs lib/core/facets/enumerable/duplicates.rb in facets-2.5.0
- old
+ new
@@ -2,11 +2,11 @@
# Returns a list on non-unique,
#
# [1,1,2,2,3,4,5].nonuniq #=> [1,2]
#
- # CREDIT: Martin DeMello
+ # CREDIT: Martin DeMello
def nonuniq
h1 = {}
h2 = {}
each {|i|
@@ -28,10 +28,10 @@
# self.replace(h2.keys)
# end
# Return list of dulicate elements.
#
- # CREDIT: Thibaut Barrère
+ # CREDIT: Thibaut Barrère
alias_method :duplicates, :nonuniq
end