title: Sending elements of an array as arguments to a method call
body: <p>I have a method that accepts the splat operator:</p>
  
  <pre><code>def hello(foo, *bar)   
     #... do some stuff 
  end
  </code></pre>
  
  <p>I have an array with a variable length that I'd like to send into this hello method:</p>
  
  <pre><code>arr1 = ['baz', 'stuff']
  arr2 = ['ding', 'dong', 'dang']
  </code></pre>
  
  <p>I'd like to call the method with arr1 and arr2 as arguments to that method but I keep getting hung up in that *bar is being interpreted as an array instead of individual arguments. To make things more fun, I can't change the hello method at all.</p>
  
  <p>I'm looking for something similar to <a href="https://stackoverflow.com/questions/1467350/turn-array-into-independent-function-arguments-howto">this SO question</a> but in ruby.</p>