title: ruby get next value on each loop
body: <p>Can I get the next value in an each loop?</p>
  
  <pre><code>(1..5).each do |i|
      @store = i + (next value of i)
  end
  </code></pre>
  
  <p>where the answer would be..</p>
  
  <p>1 + 2 + 2 + 3 + 3 + 4 + 4 + 5 + 5 = 29</p>
  
  <p>And also can I get the next of the next value?</p>