Module: Math

Defined in:
lib/scrubyt/utils/ruby_extensions.rb

Class Method Summary collapse

Class Method Details

.max(a, b) ⇒ Object



57
58
59
# File 'lib/scrubyt/utils/ruby_extensions.rb', line 57

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

.min(a, b) ⇒ Object



53
54
55
# File 'lib/scrubyt/utils/ruby_extensions.rb', line 53

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