1MooseX::MethodAttributeUss:e:rRoCloen:t:rMiebMtuoato:es:deRXoP:le:erM(le3t)DhoocduAmtetnrtiabtuitoens::Role::Meta::Role(3)
2
3
4

NAME

6       MooseX::MethodAttributes::Role::Meta::Role - metarole role for storing
7       code attributes
8

VERSION

10       version 0.32
11

SYNOPSIS

13           package MyRole;
14           use MooseX::MethodAttributes::Role;
15
16           sub foo : Bar Baz('corge') { ... }
17
18           package MyClass
19           use Moose;
20
21           with 'MyRole';
22
23           my $attrs = MyClass->meta->get_method('foo')->attributes; # ["Bar", "Baz('corge')"]
24

DESCRIPTION

26       This module is a metaclass role which is applied by
27       MooseX::MethodAttributes::Role, allowing you to add code attributes to
28       methods in Moose roles.
29
30       These attributes can then be found by introspecting the role metaclass,
31       and are automatically copied into any classes or roles that the role is
32       composed onto.
33

METHODS

35   initialize
36       Ensures that the package containing the role methods does the
37       MooseX::MethodAttributes::Role::AttrContainer role during
38       initialisation, which in turn is responsible for capturing the method
39       attributes on the class and registering them with the metaclass.
40
41   method_metaclass
42       Wraps the normal method and ensures that the method metaclass performs
43       the MooseX::MethodAttributes::Role::Meta::Method role, which allows you
44       to introspect the attributes from the method objects returned by the
45       MOP when querying the metaclass.
46

CAVEATS

48       •   Currently roles with attributes cannot have methods excluded or
49           aliased, and will in turn confer this property onto any roles they
50           are composed onto.
51

SUPPORT

53       Bugs may be submitted through the RT bug tracker
54       <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-
55       MethodAttributes> (or bug-MooseX-MethodAttributes@rt.cpan.org
56       <mailto:bug-MooseX-MethodAttributes@rt.cpan.org>).
57
58       There is also a mailing list available for users of this distribution,
59       at <http://lists.perl.org/list/moose.html>.
60
61       There is also an irc channel available for users of this distribution,
62       at "#moose" on "irc.perl.org" <irc://irc.perl.org/#moose>.
63

AUTHORS

65       •   Florian Ragwitz <rafl@debian.org>
66
67       •   Tomas Doran <bobtfish@bobtfish.net>
68
70       This software is copyright (c) 2009 by Florian Ragwitz.
71
72       This is free software; you can redistribute it and/or modify it under
73       the same terms as the Perl 5 programming language system itself.
74
75
76
77perl v5.34.0                     M2o0o2s2e-X0:1:-M2e1thodAttributes::Role::Meta::Role(3)
Impressum