class Contracts::ThresholdArg
Public Class Methods
to_s()
click to toggle source
# File lib/custom_contracts.rb, line 36 def self.to_s 'must be an Integer between 1 and 255' end
valid?(val)
click to toggle source
# File lib/custom_contracts.rb, line 31 def self.valid? val val.is_a?(Integer) && val.between?(1,255) end