class Contracts::FormatArg
Public Class Methods
to_s()
click to toggle source
# File lib/custom_contracts.rb, line 79 def self.to_s 'must be a uppercase String specifying the desired String share format [BINARY, HUMAN].' end
valid?(val)
click to toggle source
# File lib/custom_contracts.rb, line 75 def self.valid? val Contracts::Enum['BINARY', 'HUMAN'].valid?(val) end