upto(max) {|n| ... } -> Integer[permalink][rdoc][edit]upto(max) -> Enumerator- 
self から max まで 1 ずつ増やしながら繰り返します。 self > max であれば何もしません。
- [PARAM] max:
 - 数値
 - [RETURN]
 - self を返します。
 
5.upto(10) {|i| print i, " " } # => 5 6 7 8 9 10[SEE_ALSO] Integer#downto, Numeric#step, Integer#times