1MooseX::MethodAttributeUss:e:rInChoenrtirtiabbultee(d3M)PoeorsleXD:o:cMuemtehnotdaAttitornibutes::Inheritable(3)
2
3
4
6 MooseX::MethodAttributes::Inheritable - inheritable code attribute
7 introspection
8
10 version 0.32
11
13 package BaseClass;
14 use base qw/MooseX::MethodAttributes::Inheritable/;
15
16 package SubClass;
17 use base qw/BaseClass/;
18
19 sub foo : Bar {}
20
21 my $attrs = SubClass->meta->get_method('foo')->attributes; # ["Bar"]
22
24 This module does the same as "MooseX::MethodAttributes", except that
25 classes inheriting from other classes using it don't need to do
26 anything special to get their code attributes captured.
27
28 Note that instead of inheriting from this module, you can instead
29 simply compose ("with") the
30 MooseX::MethodAttributes::Role::AttrContainer::Inheritable role.
31
33 Bugs may be submitted through the RT bug tracker
34 <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-
35 MethodAttributes> (or bug-MooseX-MethodAttributes@rt.cpan.org
36 <mailto:bug-MooseX-MethodAttributes@rt.cpan.org>).
37
38 There is also a mailing list available for users of this distribution,
39 at <http://lists.perl.org/list/moose.html>.
40
41 There is also an irc channel available for users of this distribution,
42 at "#moose" on "irc.perl.org" <irc://irc.perl.org/#moose>.
43
45 • Florian Ragwitz <rafl@debian.org>
46
47 • Tomas Doran <bobtfish@bobtfish.net>
48
50 This software is copyright (c) 2009 by Florian Ragwitz.
51
52 This is free software; you can redistribute it and/or modify it under
53 the same terms as the Perl 5 programming language system itself.
54
55
56
57perl v5.36.0 2022-M0o7o-s2e2X::MethodAttributes::Inheritable(3)