File Coverage

blib/lib/MooseX/MethodAttributes/Role/Meta/Role/Application/Summation.pm
Criterion Covered Total %
statement 13 13 100.0
branch 1 2 50.0
condition n/a
subroutine 4 4 100.0
pod n/a
total 18 19 94.7


line stmt bran cond sub pod time code
1             package MooseX::MethodAttributes::Role::Meta::Role::Application::Summation;
2             # ABSTRACT: Role applied to the class responsible for role summation which ensures method attributes propagate from the roles being summed onto the combined role.
3              
4             our $VERSION = '0.30';
5              
6 3     3   9489 use Moose::Role;
  3         7  
  3         33  
7 3     3   14365 use Moose::Util qw/does_role/;
  3         62  
  3         23  
8 3     3   583 use namespace::autoclean;
  3         7  
  3         26  
9              
10             with 'MooseX::MethodAttributes::Role::Meta::Role::Application';
11              
12             sub _copy_attributes {
13 2     2   6 my ($self, $thing) = @_;
14 2         5 for my $role (@{ $self->get_roles }) {
  2         63  
15 4 50       25 $role->_copy_attributes($thing)
16             if does_role($role, 'MooseX::MethodAttributes::Role::Meta::Role');
17             }
18             }
19              
20             1;
21              
22             __END__
23              
24             =pod
25              
26             =encoding UTF-8
27              
28             =head1 NAME
29              
30             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.
31              
32             =head1 VERSION
33              
34             version 0.30
35              
36             =head1 AUTHORS
37              
38             =over 4
39              
40             =item *
41              
42             Florian Ragwitz <rafl@debian.org>
43              
44             =item *
45              
46             Tomas Doran <bobtfish@bobtfish.net>
47              
48             =back
49              
50             =head1 COPYRIGHT AND LICENSE
51              
52             This software is copyright (c) 2009 by Florian Ragwitz.
53              
54             This is free software; you can redistribute it and/or modify it under
55             the same terms as the Perl 5 programming language system itself.
56              
57             =cut