John Napiorkowski > MooseX-Types-0.15 > MooseX::Types::TypeDecorator

Download:
MooseX-Types-0.15.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  6
Open  3
Stalled  1
View/Report Bugs
Source   Latest Release: MooseX-Types-0.44

NAME ^

MooseX::Types::TypeDecorator - More flexible access to a Type Constraint

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.

can

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

meta

have meta examine the underlying type constraints

_throw_error

properly delegate error messages

DESTROY

We might need it later

AUTOLOAD

Delegate to the decorator targe

AUTHOR AND COPYRIGHT ^

John Napiorkowski (jnapiorkowski) <jjnapiork@cpan.org>

LICENSE ^

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

syntax highlighting: