1 package MooseX::MethodAttributes::Role::Meta::Method;
4 # ABSTRACT: metamethod role allowing code attribute introspection
8 use namespace::clean -except => 'meta';
14 builder => '_build_attributes',
18 sub _build_attributes {
20 return $self->associated_metaclass->get_method_attributes($self->_get_attributed_coderef);
23 sub _get_attributed_coderef {
36 MooseX::MethodAttributes::Role::Meta::Method - metamethod role allowing code attribute introspection
46 Gets the list of code attributes of the method represented by this meta method.
52 =head2 _build_attributes
54 Builds the value of the C<attributes> attribute based on the attributes
55 captured in the associated meta class.
61 Florian Ragwitz <rafl@debian.org>
62 Tomas Doran <bobtfish@bobtfish.net>
64 =head1 COPYRIGHT AND LICENSE
66 This software is copyright (c) 2009 by Florian Ragwitz.
68 This is free software; you can redistribute it and/or modify it under
69 the same terms as perl itself.