2009/6/17 Developer In London <[email protected]>:
> 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
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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