Hi --

On Wed, 30 Nov 2005, Niyazi Toytok wrote:

> I've checked lambdas and I think it's not possible also  to pass more than 
> one proc as  parameter to a method also? I used hash instead

You can pass any number of them as normal params:

   def block_test(b1,b2)
     b1.call
     b2.call
   end

   b1 = lambda { puts "one" }
   b2 = lambda { puts "two" }

   block_test(b1,b2)

   =>  one
       two


David

-- 
David A. Black
dblack / wobblini.net