title: Ruby instance_exec / instance_eval with arguments
body: <p>I'm trying to dynamically call a method given in a string using parameters given in the same string, I'm getting stuck on supplying the parameters though...</p>
  
  <p>I currently have:</p>
  
  <pre><code>query = Query.new
  
  while true
    input = gets.split(%r{[/[[:blank:]]/,]})
    puts (query.instance_exec(*input.drop(1)) { |x|
      instance_eval input.at(0)
    })
  end
  </code></pre>
  
  <p>So the method name is input(0) and the arguments to this method are in the rest of input.
  Is there any way to call this method with those parameters?</p>