title: Given an array of arguments, how do I send those arguments to a particular function in Ruby?
body: <p>Forgive the beginner question, but say I have an array:</p>
  
  <pre><code>a = [1,2,3]
  </code></pre>
  
  <p>And a function somewhere; let's say it's an instance function:</p>
  
  <pre><code>class Ilike
    def turtles(*args)
      puts args.inspect
    end
  end
  </code></pre>
  
  <p>How do I invoke <code>Ilike.turtles</code> with <code>a</code> as if I were calling <code>(Ilike.new).turtles(1,2,3)</code>.</p>
  
  <p>I'm familiar with <code>send</code>, but this doesn't seem to translate an array into an argument list.</p>
  
  <p>A parallel of what I'm looking for is the Javascript <code>apply</code>, which is equivalent to <code>call</code> but converts the array into an argument list.</p>