class Contracts::PadBlocksizeArg

Public Class Methods

to_s() click to toggle source
# File lib/custom_contracts.rb, line 100
def self.to_s
  'must be an Integer between 0 and 255'
end
valid?(val) click to toggle source
# File lib/custom_contracts.rb, line 95
def self.valid? val
  val.is_a?(Integer) &&
  val.between?(0,255)
end