Mouse::Role - The Mouse Role


NAME

Mouse::Role - The Mouse Role


VERSION

This document describes Mouse version 0.65


SYNOPSIS

    package MyRole;
    use Mouse::Role;


KEYWORDS

meta -> Mouse::Meta::Role

Returns this role's metaclass instance.

before (method|methods|regexp) -> CodeRef

Sets up a before method modifier. See Moose/before.

after (method|methods|regexp) => CodeRef

Sets up an after method modifier. See Moose/after.

around (method|methods|regexp) => CodeRef

Sets up an around method modifier. See Moose/around.

super

Sets up the super keyword. See Moose/super.

override method => CodeRef

Sets up an override method modifier. See Moose/Role/override.

inner

This is not supported in roles and emits an error. See Moose/Role.

augment method => CodeRef

This is not supported in roles and emits an error. See Moose/Role.

has (name|names) => parameters

Sets up an attribute (or if passed an arrayref of names, multiple attributes) to this role. See Mouse/has.

confess(error) -> BOOM

Carp/confess for your convenience.

blessed(value) -> ClassName | undef

blessed in the Scalar::Util manpage for your convenience.


MISC

import

Importing Mouse::Role will give you sugar.

unimport

Please unimport (no Mouse::Role) so that if someone calls one of the keywords (such as has) it will break loudly instead breaking subtly.


SEE ALSO

the Moose::Role manpage

 Mouse::Role - The Mouse Role