title: Idiomatic object creation in ruby
body: <p>In ruby, I often find myself writing the following:</p>
  
  <pre><code>class Foo
    def initialize(bar, baz)
      @bar = bar
      @baz = baz
    end
  
    &lt;&lt; more stuff &gt;&gt;
  
  end
  </code></pre>
  
  <p>or even</p>
  
  <pre><code>class Foo
    attr_accessor :bar, :baz
  
    def initialize(bar, baz)
      @bar = bar
      @baz = baz
    end
  
    &lt;&lt; more stuff &gt;&gt;
  
  end
  </code></pre>
  
  <p>I'm always keen to minimise boilerplate as much as possible - so is there a more idiomatic way of creating objects in ruby?</p>