From: Alan Chen Date: 2002-03-20T04:56:18+09:00 Subject: Re: default arguments for blocks On Wed, Mar 20, 2002 at 04:37:19AM +0900, Thomas Sondergaard wrote: > Shouldn't this be legal?: > > def myFunc(arg1, &aProc = { something }) > end > > (possibly with proc in front of the first {) > > Thomas I'm not sure but you can check if a block was supplied by def myFunc(arg1, &aProc ) if( block_given? ) end end -- Alan Chen Digikata LLC http://digikata.com