Class: Numeric

Inherits:
Object
  • Object
show all
Defined in:
lib/charlie/etc/monkey.rb

Overview

I should probably replace some of this with a dependency on facets(?) or some other library. update: Ruby 1.9 has many of these anyway

Instance Method Summary collapse

Instance Method Details

#between(minval, maxval) ⇒ Object



5
6
7
# File 'lib/charlie/etc/monkey.rb', line 5

def between(minval,maxval)
  [[self,minval].max,maxval].min
end