1MooseX::Declare::SyntaxU:s:eKreyCwoonrtdr:i:bMuetMteohdoosdPe(eX3r:)l:DDeoccluamreen:t:aStyinotnax::Keyword::Method(3)
2
3
4

NAME

6       MooseX::Declare::Syntax::Keyword::Method - Handle method declarations
7

DESCRIPTION

9       This role is an extension of MooseX::Declare::Syntax::MethodDeclaration
10       that allows you to install keywords that declare methods.
11

CONSUMES

13       ·   MooseX::Declare::Syntax::MethodDeclaration
14

METHODS

16   register_method_declaration
17         Object->register_method_declaration (Object $metaclass, Str $name, Object $method)
18
19       This method required by the method declaration role will register the
20       finished method object via the "$metaclass->add_method" method.
21
22         MethodModifier->new(
23             identifier           => 'around',
24             modifier_type        => 'around',
25             prototype_injections => {
26                 declarator => 'around',
27                 injections => [ 'CodeRef $orig' ],
28             },
29         );
30
31       This will mean that the signature "(Str $foo)" will become "CodeRef
32       $orig: Object $self, Str $foo" and and "()" will become "CodeRef $orig:
33       Object $self".
34

SEE ALSO

36       ·   MooseX::Declare
37
38       ·   MooseX::Declare::Syntax::MooseSetup
39
40       ·   MooseX::Declare::Syntax::MethodDeclaration
41
42       ·   MooseX::Method::Signatures
43
45       See MooseX::Declare
46
47
48
49perl v5.12.1                      20M0o9o-s0e9X-:2:1Declare::Syntax::Keyword::Method(3)
Impressum