I didn't say they were the same; I said that grep() didn't work in
that context, but include?() did.  :D

On 8/1/08, Stefano Crocco <stefano.crocco / alice.it> wrote:
> On Friday 01 August 2008, shadowfirebird / gmail.com wrote:
>> Someone please correct me if I'm barking up the wrong tree, but the
>> block in select wants a function that returns a logical, and grep
>> isn't one.
>
> Everything in ruby can be used as a boolean value, so technically you can
> use
> it. The only problem is that the value grep returns is always a 'true'
> value.
>
> Stefano
>
>


-- 
Me, I imagine places that I have never seen / The colored lights in
fountains, blue and green / And I imagine places that I will never go
/ Behind these clouds that hang here dark and low
But it's there when I'm holding you / There when I'm sleeping too /
There when there's nothing left of me / Hanging out behind the
burned-out factories / Out of reach but leading me / Into the
beautiful sea