I was putting & sign before parameters. that's why I thought it does not work. thank you ----- Original Message ----- From: "David A. Black" <dblack / wobblini.net> To: "ruby-talk ML" <ruby-talk / ruby-lang.org> Sent: Wednesday, November 30, 2005 5:14 AM Subject: Re: blocks > 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 > > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.362 / Virus Database: 267.13.9/185 - Release Date: 28.11.2005 > >