method

upto

v1_8_6_287 - Show latest stable - Class: Integer
upto(p1)
public

Iterates block, passing in integer values from int up to and including limit.

   5.upto(10) { |i| print i, " " }

produces:

   5 6 7 8 9 10