class Therapy::ObjectType(VALIDATORS, OUT)

Defined in:

therapy/object_type.cr

Constructors

Instance Method Summary

Instance methods inherited from class Therapy::BaseType(OUT)

optional : OptionalType(T) optional, or(other : BaseType(U)) : UnionType(T, U) forall U or, parse(input : V) : Result(T) forall V parse, parse!(input) : T parse!

Constructor Detail

def self.new(validators : VALIDATORS) #

[View source]

Instance Method Detail

def validate(err_msg : String, path : Array(String | Int32) | Nil = nil, &validation : OUT -> Bool) : self #

[View source]