NAME

Articulate::Validation - ensure content is valid before accepting it.

DESCRIPTION

use Articulate::Validation;
$validation->validate($item) or throw_error;

Validators should return a true argument if either a) The item is valid, or b) The validator has no opinion on the item.

METHODS

validate

Iterates through the validators. Returns false if any has a false result. Returns true otherwise.

ATTTRIBUTES

validators

An arrayref of the classes which provide a validate function, in the order in which they will be asked to validate items.