1MooseX::MethodAttributeUss:e:rRoCloen:t:rMiMebotuoats:ee:dXC:lP:aeMsreslt(h3Do)odcAutmternitbauttieosn::Role::Meta::Class(3)
2
3
4

NAME

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

METHODS

10   get_method_with_attributes_list
11       Gets the list of meta methods for local methods of this class that have
12       attributes in the order they have been registered.
13
14   get_all_methods_with_attributes
15       Gets the list of meta methods of local and inherited methods of this
16       class, that have attributes. Baseclass methods come before subclass
17       methods. Methods of one class have the order they have been declared
18       in.
19
20   get_nearest_methods_with_attributes
21       The same as get_all_methods_with_attributes, except that methods from
22       parent classes are not included if there is an attributeless method in
23       a child class.
24
25       For example, given:
26
27           package BaseClass;
28
29           sub foo : Attr {}
30
31           sub bar : Attr {}
32
33           package SubClass;
34           use base qw/BaseClass/;
35
36           sub foo {}
37
38           after bar => sub {}
39
40       "SubClass->meta->get_all_methods_with_attributes" will return
41       "BaseClass->meta->get_method('foo')" for the above example, but this
42       method will not, and will return the wrapped bar method, wheras
43       "get_all_methods_with_attributes" will return the original method.
44

AUTHORS

46       ·   Florian Ragwitz <rafl@debian.org>
47
48       ·   Tomas Doran <bobtfish@bobtfish.net>
49
51       This software is copyright (c) 2010 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.12.1                    Mo2o0s1e0X-:0:7M-e1t9hodAttributes::Role::Meta::Class(3)
Impressum