title: Can you eval code in the context of a caller in Ruby?
body: <p>Essentially I'm wondering if <a href="http://search.cpan.org/~gugod/Binding-0.05/lib/Binding.pm" rel="noreferrer">the following</a> can be done in Ruby. </p>
  
  <p>So for example: </p>
  
  <pre><code>def bar(symbol) 
    # magic code goes here, it outputs "a = 100" 
  end
  
  def foo
    a = 100 
    bar(:a) 
  end
  </code></pre>