I want to use min(5,10), or Math.max(4,7). Are there functions to this effect in Ruby?
min(5,10)
Math.max(4,7)
All those results generate garbage in a zealous attempt to handle more than two arguments. I'd be curious to see how they perform compared to good 'ol:
def max (a,b) a>b ? a : b end
which is, by-the-way, my official answer to your question.