class Therapy::ObjectType(VALIDATORS, OUT)

Defined in:

therapy/object_type.cr

Constructors

Instance Method Summary

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

coercing : self coercing, create_subcontext(parent : ParseContext, input : V, path) : ParseContext(T, V) forall V create_subcontext, optional : OptionalType(T) optional, 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 _do_coerce(context : ParseContext(OUT, NamedTuple)) #

[View source]
def _do_coerce(context : ParseContext(OUT, Hash)) #

[View source]
def _do_coerce(context : ParseContext(OUT, JSON::Any)) #

[View source]
def _do_coerce(context : ParseContext(OUT, URI::Params)) #

[View source]
def _parse(input : ParseContext(OUT, OUT)) : Result(OUT) #

[View source]
def validate(err_msg : String, &validation : OUT -> Bool) : self #

[View source]