line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MooseX::SlurpyConstructor::Trait::ApplicationToClass; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = '1.30'; |
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
6052
|
use Moose::Role; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
11
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
around apply => sub { |
8
|
|
|
|
|
|
|
my $orig = shift; |
9
|
|
|
|
|
|
|
my $self = shift; |
10
|
|
|
|
|
|
|
my ($role, $class) = @_; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Moose::Util::MetaRole::apply_base_class_roles( |
13
|
|
|
|
|
|
|
for => $class, |
14
|
|
|
|
|
|
|
roles => ['MooseX::SlurpyConstructor::Role::Object'], |
15
|
|
|
|
|
|
|
); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
$class = Moose::Util::MetaRole::apply_metaroles( |
18
|
|
|
|
|
|
|
for => $class, |
19
|
|
|
|
|
|
|
class_metaroles => { |
20
|
|
|
|
|
|
|
class => [ 'MooseX::SlurpyConstructor::Trait::Class' ], |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
); |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
$self->$orig( $role, $class ); |
25
|
|
|
|
|
|
|
}; |
26
|
|
|
|
|
|
|
|
27
|
2
|
|
|
2
|
|
6562
|
no Moose::Role; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
7
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |