instance method
uniq_by!
Ruby on Rails 3.2.22.5
Since v3.0.20 Last seen in v4.0.13Signature
uniq_by!()
Same as uniq_by, but modifies self.
Source
# File activesupport/lib/active_support/core_ext/array/uniq_by.rb, line 13
def uniq_by!
replace(uniq_by{ |i| yield(i) })
end
Defined in activesupport/lib/active_support/core_ext/array/uniq_by.rb line 13
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Array