num.step(limit[, step]) {|i| block } â selfnum.step(limit[, step]) â an_enumerator
Instance Public methods
Invokes block with the sequence of numbers starting at
num, incremented by step (default 1) on each call. The
loop finishes when the value to be passed to the block is greater than
limit (if step is positive) or less than limit
(if step is negative). If all the arguments are integers, the loop
operates using an integer counter. If any of the arguments are flo