title: How is each_with_object supposed to work?
body: <p>I'm trying to figure out how <code>each_with_object</code> is supposed to be used.</p>
  
  <p>I have a sum example that doesn't work:</p>
  
  <pre><code>&gt; (1..3).each_with_object(0) {|i,sum| sum+=i}
  =&gt; 0
  </code></pre>
  
  <p>I would assume that the result would be 6 ! Where is my mistake ?</p>