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

NAME

MooseX::Types::TypeDecorator - Wraps Moose::Meta::TypeConstraint objects with added features

VERSION

version 0.32

DESCRIPTION

This is a decorator object that contains an underlying type constraint. We use this to control access to the type constraint and to add some features.

METHODS

This class defines the following methods.

new

Old school instantiation

__type_constraint ($type_constraint)

Set/Get the type_constraint.

isa

handle $self->isa since AUTOLOAD can't - this tries both the type constraint, and for a class type, the class.

can

handle $self->can since AUTOLOAD can't.

_throw_error

properly delegate error messages

DESTROY

We might need it later

AUTOLOAD

Delegate to the decorator target, unless this is a class type, in which case it will call the class' version of the method if present, and fall back to the type's version if not.

LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as perl itself.

AUTHOR

Robert "phaylon" Sedlacek <rs@474.at>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Robert "phaylon" Sedlacek.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.