title: How do I pass an array to a method that accepts an attribute with a splat operator?
body: <p>If I have a method like:</p>
  
  <pre><code>def sum *numbers
    numbers.inject{|sum, number| sum += number}
  end
  </code></pre>
  
  <p>How would I be able to pass an array as numbers?</p>
  
  <pre><code>ruby-1.9.2-p180 :044 &gt; sum 1,2,3   #=&gt; 6
  ruby-1.9.2-p180 :045 &gt; sum([1,2,3])   #=&gt; [1, 2, 3]
  </code></pre>
  
  <p>Note that I can't change the sum method to accept an array.</p>