class SPNet::Limit
Defines a limit, where a value should not be above (for upper limit) or below (for lower limit). If inclusive is set to true, the limit indicates that values at the limit are OK.
@author James Tunnell
Attributes
inclusive[R]
value[R]
Public Class Methods
new(value, inclusive)
click to toggle source
# File lib/spnet/core/limiter.rb, line 15 def initialize value, inclusive @value = value @inclusive = inclusive end
Public Instance Methods
inclusive?()
click to toggle source
# File lib/spnet/core/limiter.rb, line 11 def inclusive? return @inclusive end