title: How do I define this reject method from the Gosu library tutorial?
body: <p>I'm wondering how do define <code>reject</code> in this code from <a href="https://github.com/jlnr/gosu/wiki/Ruby-Tutorial" rel="nofollow">the Gosu tutorial</a>:</p>
  
  <pre><code>def collect_stars(star)
    if Star.reject! {|star| Gosu::distance(@x, @y, Star.x, star.y) &lt; 35} then
      @score += 1
    end
  end
  </code></pre>
  
  <p>Looking at the tutorial, I don't see where <code>reject</code> is defined. What would you do to define it?</p>