There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

NAME

Input::Validator::Constraint - Basic condition class

SYNOPSIS

Used internally.

DESCRIPTION

Basic class for constraints. Subclass it to write new conditions.

ATTRIBUTES

args

Holds args that are passed to the constraint.

error

Holds constraint's error message.

METHODS

is_valid

Checks whether constraint is valid.