max function in ruby

is there a max function in ruby?

eg max(number1, number2)

thanks

nayeem

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!