From: senthil Date: 2007-03-06T23:03:37+09:00 Subject: remove duplicates of array of object based on a attribute hi all, how to remove duplicates of an array of objects based a attribute of the object. For ex i am having an array of ruby beans named diagnoses . i want remove duplicates from the based on the diagnoses id. assume diagnoses have attributes id and weightage .So for two diagnoses with same id and different weightage , the diagnoses with lower weightage should be removed. Can anyone help me?? -- Posted via http://www.ruby-forum.com/.