1 package MooseX::MethodAttributes::Role::AttrContainer::Inheritable;
4 # ABSTRACT: capture code attributes in the automatically initialized metaclass instance
8 use MooseX::MethodAttributes ();
10 use namespace::clean -except => 'meta';
12 with 'MooseX::MethodAttributes::Role::AttrContainer';
14 before MODIFY_CODE_ATTRIBUTES => sub {
15 my ($class, $code, @attrs) = @_;
17 MooseX::MethodAttributes->init_meta( for_class => $class );
29 MooseX::MethodAttributes::Role::AttrContainer::Inheritable - capture code attributes in the automatically initialized metaclass instance
37 This role extends C<MooseX::MethodAttributes::Role::AttrContainer> with the
38 functionality of automatically initializing a metaclass for the caller and
39 applying the meta roles relevant for capturing method attributes.
45 Florian Ragwitz <rafl@debian.org>
46 Tomas Doran <bobtfish@bobtfish.net>
48 =head1 COPYRIGHT AND LICENSE
50 This software is copyright (c) 2009 by Florian Ragwitz.
52 This is free software; you can redistribute it and/or modify it under
53 the same terms as perl itself.