Class: SPNet::Limiter
- Inherits:
-
Object
- Object
- SPNet::Limiter
- Defined in:
- lib/spnet/core/limiter.rb
Overview
Base class for limiting values. Does nothing on it’s own.
Direct Known Subclasses
EnumLimiter, LowerLimiter, NoLimiter, RangeLimiter, UpperLimiter
Instance Method Summary collapse
Instance Method Details
#apply_limit(value, current_value) ⇒ Object
25 26 27 |
# File 'lib/spnet/core/limiter.rb', line 25 def apply_limit value, current_value raise NotImplementedError end |