From: "Mikael Høilund" Date: 2008-06-24T06:24:46+09:00 Subject: Re: Suggestion: Enumerable#all?/any? with argument On Jun 23, 2008, at 23:12, Farrel Lifson wrote: > [ "one", 2, "three"].all?( String ) I love it. > [ 1, 100, 1000].any?( 50...150 ) I love it. > ["one", "two", "six"].all? ( String ) { |item| item.length == 3 } Not so much, but it'd be ridiculous to disallow it. Still love the general idea. > Anyone else see any merit in this? The expression > [ "one", "two", "three" ].all? String > just seems quite nice to me. >> Indeed it does. I love it! -- # Mikael Høilund def method_missing(m, a=0) a + m.to_s[/[a-z]+/].size * 2; end p What is the meaning of life?