07 Feb 2017 19:00:28 UTC
- Distribution: MooseX-Types
- Module version: 0.50
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (12)
- Testers (9555 / 10 / 2)
- KwaliteeBus factor: 5
- 93.49% Coverage
- License: perl_5
- Perl: v5.8.0
- Download (55.91KB)
- MetaCPAN Explorer
- Subscribe to distribution
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- This version
- Latest version++ed by:9 non-PAUSE users
- COPYRIGHT AND LICENCE
MooseX::Types::TypeDecorator - Wraps Moose::Meta::TypeConstraint objects with added features
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.
This class defines the following methods.
Old school instantiation
Set/Get the type_constraint.
AUTOLOADcan't - this tries both the type constraint, and for a class type, the class.
handle $self->can since AUTOLOAD can't.
properly delegate error messages
We might need it later
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.
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
Robert "phaylon" Sedlacek <firstname.lastname@example.org>
This software is copyright (c) 2007 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.
Module Install Instructions
To install MooseX::Types, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install MooseX::Types
For more information on module installation, please visit the detailed CPAN module installation guide.
|s||Focus search bar|
|?||Bring up this help dialog|
|g p||Go to pull requests|
|g i||go to github issues (only if github is preferred repository)|
|g a||Go to author|
|g c||Go to changes|
|g i||Go to issues|
|g d||Go to dist|
|g r||Go to repository/SCM|
|g s||Go to source|
|g b||Go to file browse|