Class: Array
Instance Method Summary collapse
Instance Method Details
#duplicates ⇒ Object
2 3 4 |
# File 'lib/transmission-rss/core_ext/Array.rb', line 2 def duplicates self.group_by { |e| e }.select { |k, v| v.size > 1 }.map(&:first) end |