int.upto(limit) {|i| block } â self
int.upto(limit) â an_enumerator
int.upto(limit) â an_enumerator
Instance Public methods
Iterates block, passing in integer values from int up to and including limit.
If no block is given, an enumerator is returned instead.
5.upto(10) { |i| print i, " " }
produces:
5 6 7 8 9 10
Please login to continue.