On Wed, Mar 30, 2011 at 5:00 AM, Haruka YAGNI <hyagni / gmail.com> wrote:
>> multiple values for the block paramater(0 for 1)
>
> You cannot set an argument for x.reach.
> =A0self.each{|x| x.reach(yield)}
>
> Instead,
> =A0self.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

--=20
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/