Module: DbAgile::MathTools

Extended by:
MathTools
Included in:
MathTools
Defined in:
lib/dbagile/tools/math.rb

Instance Method Summary collapse

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