Module: DbAgile::MathTools
Instance Method Summary collapse
-
#max(x, y) ⇒ Object
Returns x if x > y, y otherwise.
Instance Method Details
#max(x, y) ⇒ Object
Returns x if x > y, y otherwise
5 6 7 |
# File 'lib/dbagile/tools/math.rb', line 5 def max(x, y) x > y ? x : y end |