| 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 | 3 | our $VERSION = '0.32'; | |||||||||
| 5 | |||||||||||
| 6 | 3 | ▶ | use Moose::Role; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 3 | ▶ | use Moose::Util qw/does_role/; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 3 | ▶ | use namespace::autoclean; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 3 | with 'MooseX::MethodAttributes::Role::Meta::Role::Application'; | |||||||||
| 11 | |||||||||||
| 12 | 2 | ▶ | sub _copy_attributes { | ||||||||
|
Subroutine
_copy_attributes: called CC=3 SCAR=11.1
| |||||||||||
| 13 | 2 | my ($self, $thing) = @_; | |||||||||
| 14 | 2 | for my $role (@{ $self->get_roles }) { | |||||||||
| 15 | 4 | ▶ | $role->_copy_attributes($thing) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | if does_role($role, 'MooseX::MethodAttributes::Role::Meta::Role'); | ||||||||||
| 17 | } | ||||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 3 | 1; | |||||||||
| 21 | |||||||||||
| 22 | __END__ | ||||||||||