class Dry::Validation::Rule

Rules capture configuration and evaluator blocks

When a rule is applied, it creates an ‘Evaluator` using schema result and its block will be evaluated in the context of the evaluator.

@see Contract#rule

@api public