title: Dynamically set local variables in Ruby
body: <p>I'm interested in dynamically setting local variables in Ruby.  Not creating methods, constants, or instance variables.</p>
  
  <p>So something like:</p>
  
  <pre><code>args[:a] = 1
  args.each_pair do |k,v|
    Object.make_instance_var k,v
  end
  puts a
  &gt; 1
  </code></pre>
  
  <p>I want locally variables specifically because the method in question lives in a model and I dont want to pollute the global or object space.</p>