Вячеслав Тихановский > Input-Validator > Input::Validator::Constraint::Subset

Download:
Input-Validator-0.001005.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Input::Validator::Constraint::Subset - Subset constraint

SYNOPSIS ^

    $validator->field('tags')->constraint(subset => [qw/foo bar baz/]);

DESCRIPTION ^

Checks whether the value is a subset of the provided array reference values.

METHODS ^

is_valid

Validates the constraint.

SEE ALSO ^

Input::Validator, Input::Constraint

syntax highlighting: