Module: Math

Defined in:
lib/joffice/kernel/math.rb

Class Method Summary collapse

Class Method Details

.max(a, b) ⇒ Object



20
21
22
# File 'lib/joffice/kernel/math.rb', line 20

def self.max(a, b)
  a > b ? a : b
end

.min(a, b) ⇒ Object



24
25
26
# File 'lib/joffice/kernel/math.rb', line 24

def self.min(a, b)
  a < b ? a : b
end