From: Joel VanderWerf Date: 2007-11-02T06:36:08+09:00 Subject: Re: Newbie question Dale Smith wrote: > irb(main):001:0> 1..10.each { |x| puts x } > NoMethodError: undefined method 'each' for 10:Fixnum > from (irb):1 > irb(main):002:0> The problem is that `..' has lower precedence than `.'. (1..10).each { |x| puts x } I often forget the ( ) , and have to back up and insert them. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407