On Thu, Feb 3, 2011 at 1:41 PM, Thescholar Thescholar
<thescholar / hotmail.ca> wrote:
> I am wondering how it's possible to iterate through a for loop statement
> by 5 rather than by 1.

try this,

  for i in (0..100).step(5)
    p i
  end


then compare this,

  (0..100).step(5){|i| p i }


best regards -botp