title: How to dynamically create a local variable?
body: <p>I have a variable <code>var = "some_name"</code> and I would like to create a new object and assign it to <code>some_name</code>. How can I do it? E.g.</p>
  
  <pre><code>var = "some_name"
  some_name = Struct.new(:name) # I need this
  a = some_name.new('blah') # so that I can do this.
  </code></pre>