class Contracts::SelectByArg
Public Class Methods
to_s()
click to toggle source
# File lib/custom_contracts.rb, line 89 def self.to_s 'must be a uppercase String specifying the desired way to sample shares provided [FIRST, SAMPLE, COMBINATIONS].' end
valid?(val)
click to toggle source
# File lib/custom_contracts.rb, line 85 def self.valid? val Contracts::Enum['FIRST', 'SAMPLE', 'COMBINATIONS'].valid?(val) end