Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Defined in:
- lib/pavement_condition_index/core_ext/numeric.rb
Instance Method Summary collapse
Instance Method Details
#clamp(min, max) ⇒ Object
2 3 4 |
# File 'lib/pavement_condition_index/core_ext/numeric.rb', line 2 def clamp min, max [[self, max].min, min].max end |