1MooseX::Declare::SyntaxU:s:eKreyCwoonrtdr:i:bMMuoetoteshdeoXdP:(e:3rDplemc)Dloacruem:e:nStyanttiaoxn::Keyword::Method(3pm)
2
3
4

NAME

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

VERSION

9       version 0.43
10

DESCRIPTION

12       This role is an extension of MooseX::Declare::Syntax::MethodDeclaration
13       that allows you to install keywords that declare methods.
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 "()" will become "CodeRef $orig:
33       Object $self".
34

CONSUMES

36       •   MooseX::Declare::Syntax::MethodDeclaration
37

SEE ALSO

39       •   MooseX::Declare
40
41       •   MooseX::Declare::Syntax::MooseSetup
42
43       •   MooseX::Declare::Syntax::MethodDeclaration
44
45       •   MooseX::Method::Signatures
46

AUTHOR

48       Florian Ragwitz <rafl@debian.org>
49
51       This software is copyright (c) 2008 by Florian Ragwitz.
52
53       This is free software; you can redistribute it and/or modify it under
54       the same terms as the Perl 5 programming language system itself.
55
56
57
58perl v5.34.0                     M2o0o2s1e-X0:7:-D2e2clare::Syntax::Keyword::Method(3pm)
Impressum