Class: Numeric

Inherits:
Object show all
Defined in:
lib/sc-core-ext/numeric.rb

Instance Method Summary collapse

Instance Method Details

#max(a) ⇒ Object



2
3
4
# File 'lib/sc-core-ext/numeric.rb', line 2

def max(a)
  self > a ? self : a
end

#min(a) ⇒ Object



6
7
8
# File 'lib/sc-core-ext/numeric.rb', line 6

def min(a)
  self < a ? self : a
end