1 package MooseX::MethodAttributes::Role::Meta::Role::Application::Summation;
4 # ABSTRACT: Role applied to the class responsible for role summation which ensures method attributes propagate from the roles being summed onto the combined role.
7 use Moose::Util qw/does_role/;
8 use namespace::clean -except => 'meta';
10 with 'MooseX::MethodAttributes::Role::Meta::Role::Application';
12 sub _copy_attributes {
13 my ($self, $thing) = @_;
14 for my $role (@{ $self->get_roles }) {
15 $role->_copy_attributes($thing)
16 if does_role($role, 'MooseX::MethodAttributes::Role::Meta::Role');
28 MooseX::MethodAttributes::Role::Meta::Role::Application::Summation - Role applied to the class responsible for role summation which ensures method attributes propagate from the roles being summed onto the combined role.
36 Florian Ragwitz <rafl@debian.org>
37 Tomas Doran <bobtfish@bobtfish.net>
39 =head1 COPYRIGHT AND LICENSE
41 This software is copyright (c) 2009 by Florian Ragwitz.
43 This is free software; you can redistribute it and/or modify it under
44 the same terms as perl itself.