From: "Leo M." Date: 2012-12-11T00:49:35+09:00 Subject: Array of a class' attribute Hi there, I'm working on a DB that has the rows structured as a ruby class called Result, structured as follows: class Result attr_accessor :name, :link, :messages end very simple one. The catch is that there are a lot of doubles in terms of LINK attribute. I'm trying to create a method that erases all the Result(s) that shares the same :link attribute with another Result. def erase_doubles @results.each do |result| #I REALLY DON'T HAVE IDEA ABOUT HOW TO BUILD IT :) end end -- Posted via http://www.ruby-forum.com/.