'Cos:

(1..7).include?( 2.2 ) is true, but (1..7).to_a.include?( 2.2 ) isn't.

-
Maurício Linhares
http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en)



On Wed, Feb 25, 2009 at 4:02 PM, Guillaume Loader
<[email protected]> wrote:
>
> Maurício Linhares wrote:
>> Ops, it's a to_a
>
>
> Why do we need to_a?
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to