title: Ruby Ampersand Method
body: <p>Is there a way to override the <code>&amp;</code> method on an object so it returns an array when called like so:</p>
  
  <pre><code>class MyObject
  end
  
  o1, o2, o3 = MyObject.new, MyObject.new, MyObject.new
  
  o1 # =&gt; #&lt;MyObject0x01&gt;
  o1 &amp; o2 # =&gt; [#&lt;MyObject0x01&gt;, #&lt;MyObject0x02&gt;]
  o1 &amp; o2 &amp; o3 # =&gt; [#&lt;MyObject0x01&gt;, #&lt;MyObject0x02&gt;, #&lt;MyObject0x03&gt;]
  </code></pre>