I’m not exactly sure how I’ve missed Enumerable#all? and #Enumerable#any?, but mark them as yet two more reasons to love Ruby. Both methods pass all elements of the collection to a block and they return true or false based on the collection’s matchy-ness. Examples follow:
["Joe Purdy", "Jonathon Coulton"].all? { |artist| artist.rocks? } #=>true
["Fortran", [...]