Class: Fixnum

Inherits:
Object show all
Defined in:
lib/diakonos/core-ext/fixnum.rb

Instance Method Summary collapse

Instance Method Details

#fit(min, max) ⇒ Object



2
3
4
5
6
7
# File 'lib/diakonos/core-ext/fixnum.rb', line 2

def fit( min, max )
  return self if max < min
  return min if self < min
  return max if self > max
  return self
end

#ordObject



9
10
11
# File 'lib/diakonos/core-ext/fixnum.rb', line 9

def ord
  self
end