From: Yossef Mendelssohn Date: 2007-11-25T23:52:44+09:00 Subject: Re: Enumerable#detect_result ? On Nov 25, 3:00 am, MonkeeSage wrote: > Yossef, > > Just curious, but does the detect_results method for the Enumerable > module that I listed above, work for your example: > > results = formats.detect_results { |f| f.process(mesg) } > > ? > > Regards, > Jordan I didn't bother to try. It looks like it'll work just fine. I like the idea of specifying an alternate value if nothing matches, but it's always odd to pass two blocks to a method. -- -yossef