class
Schematics::CustomValidator(T)
- Schematics::CustomValidator(T)
- Schematics::Validator(T)
- Reference
- Object
Overview
Custom validator that wraps a user-provided proc
Defined in:
validators.crConstructors
Instance Method Summary
Instance methods inherited from class Schematics::Validator(T)
call(value) : T | Nil
call,
validate(value, path : String = "root") : ValidationResult
validate
Constructor Detail
def self.new(validator_proc : T -> Bool, error_message : String = "custom validation failed")
#