Mouse::Role - define a role in Mouse
Returns this role's metaclass instance.
Sets up a "before" method modifier. See "before" in Moose or "before" in Class::Method::Modifiers.
Sets up an "after" method modifier. See "after" in Moose or "after" in Class::Method::Modifiers.
Sets up an "around" method modifier. See "around" in Moose or "around" in Class::Method::Modifiers.
Sets up the "super" keyword. See "super" in Moose.
Sets up an "override" method modifier. See "Role/override" in Moose.
This is not supported and emits an error. See "Role" in Moose.
Sets up an attribute (or if passed an arrayref of names, multiple attributes) to this role. See "has" in Mouse.
"confess" in Carp for your convenience.
"blessed" in Scalar::Util for your convenience.
Importing Mouse::Role will give you sugar.
Please unimport Mouse (no Mouse::Role) so that if someone calls one of the keywords (such as "has") it will break loudly instead breaking subtly.
no Mouse::Role
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.