is there a max function in ruby?
eg max(number1, number2)
thanks
nayeem
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 module Enumerable - RDoc Documentation so [1,3,2].max #=> 3
Colin
thanks!