class Contracts::NumSharesArg
Public Class Methods
to_s()
click to toggle source
# File lib/custom_contracts.rb, line 47 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 42 def self.valid? val val.is_a?(Integer) && val.between?(1,255) end