1 package MooseX::MethodAttributes::Inheritable;
4 # ABSTRACT: inheritable code attribute introspection
7 # Ensure trait is registered
8 use MooseX::MethodAttributes::Role::Meta::Role ();
12 use namespace::clean -except => 'meta';
14 with 'MooseX::MethodAttributes::Role::AttrContainer::Inheritable';
16 __PACKAGE__->meta->make_immutable;
25 MooseX::MethodAttributes::Inheritable - inheritable code attribute introspection
34 use base qw/MooseX::MethodAttributes::Inheritable/;
37 use base qw/BaseClass/;
41 my $attrs = SubClass->meta->get_method('foo')->attributes; # ["Bar"]
45 This module does the same as C<MooseX::MethodAttributes>, except that classes
46 inheriting from other classes using it don't need to do anything special to get
47 their code attributes captured.
53 Florian Ragwitz <rafl@debian.org>
54 Tomas Doran <bobtfish@bobtfish.net>
56 =head1 COPYRIGHT AND LICENSE
58 This software is copyright (c) 2009 by Florian Ragwitz.
60 This is free software; you can redistribute it and/or modify it under
61 the same terms as perl itself.