From: MonkeeSage Date: 2007-11-26T00:15:00+09:00 Subject: Re: Enumerable#detect_result ? On Nov 25, 8:52 am, Yossef Mendelssohn 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