The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MojoX::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.