thanks!
2009/6/17 Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
>
> 2009/6/17 Developer In London
<ebillionaire-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
> > is there a max function in ruby?
> >
> > eg max(number1, number2)
>
> See http://www.ruby-doc.org/core/classes/Enumerable.html
> so
> [1,3,2].max #=> 3
>
> Colin
>
> >
> > thanks
> >
> > nayeem
> >
> > >
> >
>
> >
>
-- 
cashflowclublondon.co.uk
                     
("`-''''-/").___..--''''"`-._
                       `6_ 6  )   `-.  (     ).`-.__.`)
                       (_Y_.)''  ._   )  `._ `. ``-..-''
                     _..`--''_..-_/  /--''_.''
,''
                    (il),-''''  (li),''  ((!.-''
.
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---