On 4/6/07, Joel VanderWerf <vjoel / path.berkeley.edu> wrote:

> More generally, though, the only way to pass more than one block to a
> method is to turn all but one of the blocks into procs, like this:
>
> meth_with_two_blocks(proc {...}) { ... }

I generally recommend using Kernel#lambda instead of  Kernel#proc the
difference is subtle, but unless you want to allow non-local returns
from a block lamba is almost always the right choice.

-- 
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/