On Nov 25, 3:00 am, MonkeeSage <MonkeeS... / gmail.com> 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