title: Removing Identical Objects in Ruby?
body: <p>I am writing a Ruby app at the moment which is going to search twitter for various things. One of the problems I am going to face is shared results between searches in close proximity to each other time-wise. The results are returned in an array of objects each of which is a single tweet. I know of the Array.uniq method in ruby which returns an array with all the duplicates removed. </p>
  
  <p>My question is this. Does the uniq method remove duplicates in so far as these objects point to the same space in memory or that they contain identical information?</p>
  
  <p>If the former, whats the best way of removing duplicates from an array based on their content?</p>