title: How can one set property values when initializing an object in Ruby?
body: <p>Given the following class:</p>
  <pre><code>class Test
    attr_accessor :name
  end
  </code></pre>
  <p>When I create the object, I want to do the following:</p>
  <pre><code>t = Test.new {name = 'Some Test Object'}
  </code></pre>
  <p>At the moment, it results in the <code>name</code> attribute still being <code>nil</code>.</p>
  <p>Is that possible without adding an initializer?</p>