Mouse::Meta::Attribute - attribute metaclass
Instantiates a new Mouse::Meta::Attribute. Does nothing else.
Creates a new attribute in OwnerClass. Accessors and helper methods are installed. Some error checking is done.
Informational methods.
Creates a new code reference for the attribute's accessor.
Creates a new code reference for the attribute's predicate.
Creates a new code reference for the attribute's clearer.
Creates a new code reference for each of the attribute's handles methods.
Checks that the given value passes this attribute's type constraint. Returns 1 on success, otherwise confesses.
confess
Canonicalizes some arguments to create. In particular, lazy_build is canonicalized into lazy, builder, etc.
lazy_build
lazy
builder
Checks that the arguments to create the attribute (ie those specified by has) are valid.
has
Creates a new attribute in OwnerClass, inheriting options from parent classes. Accessors and helper methods are installed. Some error checking is done.
Returns the options that the parent class of OwnerClass used for attribute AttributeName.
OwnerClass
AttributeName
To install Mouse, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mouse
CPAN shell
perl -MCPAN -e shell install Mouse
For more information on module installation, please visit the detailed CPAN module installation guide.