title: Range is printed at the end of the "each" iteration
body: <p>What I'll show is a fulish function, but it's only to explain my problem in a simple way. If I solve the problem in this function, I solved the problem in the original code too.</p>
  
  <p>The problem is simple, and probably the solution too, but I'm new in Ruby and have this doubt. I want to print the values in a range:</p>
  
  <pre><code>def test
    (0...5).each do |i|
      puts i
    end
  end
  </code></pre>
  
  <p>When I call the function, the result that I want is </p>
  
  <pre><code>0
  1
  2
  3
  4
  </code></pre>
  
  <p>but the result that I have is </p>
  
  <pre><code>0
  1
  2
  3
  4
  0...5
  </code></pre>
  
  <p>Why this <code>0...5</code> is printed together? How can I avoid that?</p>