Mikael Høilund
6/23/2008 9:25:00 PM
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 =3D=3D 3 }
Not so much, but it'd be ridiculous to disallow it. Still love the =20
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!
--=20
# Mikael H=F8ilund
def method_missing(m, a=3D0) a +
m.to_s[/[a-z]+/].size * 2; end
p What is the meaning of life?