title: how to add syntactic sugar to rails similar to collections
body: <p>How one can add syntactic sugar similar to rails "add to collection" &lt;&lt; operator, i.e.</p>
  
  <pre><code>@object.collection &lt;&lt; item
  </code></pre>
  
  <p>I was trying to do </p>
  
  <pre><code>class Object
    def collection&lt;&lt;(item)
      ...
    end
  end
  </code></pre>
  
  <p>but it does not work. Optionally I would like to define my own "operators" on attributes.</p>
  
  <p>Note - i am aware hot to use <code>def &lt;&lt;(value)</code> but it works for the whole object not for its attribute.</p>