Coat::Meta::TypeConstraint(3pm)

Coat::Meta::TypeConstraint3pm

The coat type constraint metaclass

Overview

For the most part, the only time you will ever encounter an instance of this class is if you are doing some serious deep introspection. This API should not be considered final, but it is highly unlikely that this will matter to a regular Coat user.

Methods

new

Constructor

coerce ($value)

This will apply the type-coercion if applicable.

validate ($value)

If the $value passes the constraint, "undef" will be returned. If the $value does not pass the constraint, then the "message" will be used to construct a custom error message.

has_coercion Return true if coercion has been defined, false otherwise.

Releases

2 releases since Debian 5.0 (Lenny); the text changed 1 time.

  1. 5.0
  2. 6.0

Author

Alexis Sukrieh <[email protected]> ; based on the work done by Stevan Little <[email protected]> on Moose::Meta::TypeConstraint

From libcoat-perl 0.334-1 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.