From: Markus Date: 2004-09-27T14:59:24+09:00 Subject: Re: Object#send and blocks/procs Gavin -- *smile* I think that's twice in the last week or so. I'm just going to have to learn to type faster! -- Markus On Sun, 2004-09-26 at 22:56, Gavin Sinclair wrote: > Assaph wrote: > > > prc = lambda{ |a| a.upcase } > > puts "aaa".send(:gsub, /./) # how do I pass prc as the block to gsub? > > Try this: > > puts "aaa".send(:gsub, /./, &prc) > > Cheers, > Gavin > >