Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
therapy
main
Therapy
ArrayType
BaseType
BoolType
Check
Error
Int32Type
ObjectType
OptionalType
ParseContext
Result
Failure
Success
StringType
SubContext
TupleType
Built with Crystal 1.9.2
2023-10-07 18:06:28 UTC
class
Therapy::Check(T)
Therapy::Check(T)
Reference
Object
Defined in:
therapy/check.cr
Constructors
.new
(check : Therapy::ParseContext(T, T) -> _)
Class Method Summary
.valid
(error_msg : String, &block : T -> Bool) : Check(T) forall T
Instance Method Summary
#check
(context : Therapy::ParseContext(T, T))
Constructor Detail
def self.
new
(check :
Therapy::ParseContext
(T, T) -> _)
#
[
View source
]
Class Method Detail
def self.
valid
(error_msg : String, &block : T -> Bool) :
Check
(T) forall T
#
[
View source
]
Instance Method Detail
def
check
(context :
Therapy::ParseContext
(T, T))
#
[
View source
]