On Oct 24, 2007, at 2:16 AM, Jesù¸ Gabriel y GaláÏ wrote: > On 10/24/07, James Koppel <jamesbkoppel / yahoo.com> wrote: >> I then wrote the simple Array#some method that returns true if >> the given >> predicate returns true for at least one of its elements, which I >> used to write >> TimeWindow#incude?. > >> class Array >> def some >> each {|el| return true if yield el} >> false >> end >> end > > Isn't this the same as Enumerable#any? It sure is.