From: Robert Klemme Date: 2011-03-30T19:59:28+09:00 Subject: Re: Getting an Error with local variable On Wed, Mar 30, 2011 at 5:00 AM, Haruka YAGNI wrote: >> multiple values for the block paramater(0 for 1) > > You cannot set an argument for x.reach. >  self.each{|x| x.reach(yield)} > > Instead, >  self.each{|x| x.reach{|y| yield y}} > This works but is not elegant. > Somebody has an idea? The approach is broken because the block is not carried through the recursion. Please see my recent reply in thread "Creating a Reach Program" a few days back. Cheryl, did you actually read it? robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/