MooseX::TypeMap::Entry - A type-constraint-to-data map entry
use MooseX::Types::Moose qw(Num); MooseX::TypeMap::Entry->new( data => 'number', type_constraint => Num, );
An optional read-only value of any kind.
The following methods are associated with this attribute:
A required, read-only Moose::Meta::TypeConstraint.
\%arguments
$object_instance
Constructor. Accepts the following keys: data, type_constraint.
data
type_constraint
Please see MooseX::TyeMap
To install MooseX::TypeMap, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::TypeMap
CPAN shell
perl -MCPAN -e shell install MooseX::TypeMap
For more information on module installation, please visit the detailed CPAN module installation guide.