title: Initialize an object with a block
body: <p>Is it possible to initialize an object with a block as follows?</p>
  
  <pre><code>class Foo
    attr_reader :bar,:baz
    def initialize(bar,baz)
      @bar, @baz = bar, baz
    end
  end
  
  Foo.new do |bar, baz|
    # some logic to be implemented
    # @bar, @baz to be assigned
  end
  </code></pre>