logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

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

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 try to delegate to
       the type object, then if that fails try the class. The method 'new' is special cased to only be permitted
       on the class; if there is no class, or it does not provide a new method, an exception will be thrown.

Name

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

Support

       Bugs may be submitted through the RT bug tracker
       <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Types> (or bug-MooseX-Types@rt.cpan.org
       <mailto:bug-MooseX-Types@rt.cpan.org>).

       There is also a mailing list available for users of this distribution, at
       <http://lists.perl.org/list/moose.html>.

       There is also an irc channel available for users of this distribution, at "#moose" on "irc.perl.org"
       <irc://irc.perl.org/#moose>.

Version

       version 0.51

See Also