NAME
Data::Transpose::Validator::Set - Validate a string inside a set of values
METHODS
new(list => \@list, multiple => 1)
Constructor to set the list in which the value to be validated must be present.
is_valid($value, [ $value, $value, ... ] )
The validator. Returns a true value if the value (or the values) passed are all present in the set. Multiple values validate only if the multiple option is set in the constructor. It also accept an arrayref as single argument, if the multiple option is set.
INTERNAL METHODS
multiple
Accessor to the multiple option
list
Accessor to the list option
list_as_hash
Accessor to the list of values, as an hash.