On Nov 25, 8:52 am, Yossef Mendelssohn <ymen... / pobox.com> wrote:

> 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.

It's actually the same thing that detect() does, I just made it return
the value of the first True instance, rather than the object. If you
look at the docs for Enumerable#detect, it's the same semantics for
ifnone.

Regards,
Jordan