From: Kristof Bastiaensen Date: 2005-04-30T00:24:39+09:00 Subject: Re: stupid question On Fri, 29 Apr 2005 22:32:38 +0900, Dick Davies wrote: > * Joe Van Dyk [0450 23:50]: >> On 4/28/05, James Edward Gray II wrote: >> > ------------------------------------------------------------- Range#step >> > rng.step(n=1) {| obj | block } => rng >> > ------------------------------------------------------------------------ > >> But that only goes up, right? > > Apparently so - > > irb(main):004:0> (100..10).step(-2) { |x| puts x } > ArgumentError: step can't be negative > from (irb):4:in `step' > from (irb):4 Worthy of a RCR?