Ruby 1.9.3 Reference Manual > All Libraries > Builtin Library > class Integer > downto
downto(min) {|n| ... } -> selfdownto(min) -> Enumeratorself から min まで 1 ずつ減らしながらブロックを繰り返し実行します。 self < min であれば何もしません。
[SEE_ALSO] Integer#upto, Numeric#step, Integer#times