Module: FastAPI::Utilities
- Included in:
- Wrapper
- Defined in:
- lib/fastapi/utilities.rb
Instance Method Summary collapse
Instance Method Details
#clamp(value, min, max) ⇒ Object
3 4 5 |
# File 'lib/fastapi/utilities.rb', line 3 def clamp(value, min, max) [min, value, max].sort[1] end |