line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MooseX::UndefTolerant::ApplicationToRole; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.21'; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
5665
|
use Moose::Role; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
around apply => sub { |
8
|
|
|
|
|
|
|
my $orig = shift; |
9
|
|
|
|
|
|
|
my $self = shift; |
10
|
|
|
|
|
|
|
my ($role1, $role2) = @_; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
$role2 = Moose::Util::MetaRole::apply_metaroles( |
13
|
|
|
|
|
|
|
for => $role2, |
14
|
|
|
|
|
|
|
role_metaroles => { |
15
|
|
|
|
|
|
|
application_to_class => [ |
16
|
|
|
|
|
|
|
'MooseX::UndefTolerant::ApplicationToClass', |
17
|
|
|
|
|
|
|
], |
18
|
|
|
|
|
|
|
application_to_role => [ |
19
|
|
|
|
|
|
|
'MooseX::UndefTolerant::ApplicationToRole', |
20
|
|
|
|
|
|
|
], |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
); |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
$self->$orig( $role1, $role2 ); |
25
|
|
|
|
|
|
|
}; |
26
|
|
|
|
|
|
|
|
27
|
1
|
|
|
1
|
|
3381
|
no Moose::Role; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
4
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |