From: SonOfLilit Date: 2007-02-18T21:26:12+09:00 Subject: Re: exit in a bloc DRY way... On 2/18/07, George Ogata wrote: > I'd do: > > nb-=1 if contact.any?{|c| c.from==parameter} > > Regards, > George. > > Wow, #any? can do this? Thanks for teaching me a cool idiom! On 2/18/07, Sharon Phillips wrote: > Yes, I think you are correct. > I am learning too and had not come across find before. Thankyou for > the information. > > Cheers, > Dave Then let me repeat that plug: Check out the adopt-a-newbie thread please :) Aur Saraf