line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MooX::InsideOut; |
2
|
2
|
|
|
2
|
|
47938
|
use strictures 1; |
|
2
|
|
|
|
|
14
|
|
|
2
|
|
|
|
|
68
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
our $VERSION = '0.001002'; |
5
|
|
|
|
|
|
|
$VERSION = eval $VERSION; |
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
1073
|
use Moo (); |
|
2
|
|
|
|
|
2786
|
|
|
2
|
|
|
|
|
42
|
|
8
|
2
|
|
|
2
|
|
954
|
use Moo::Role (); |
|
2
|
|
|
|
|
9503
|
|
|
2
|
|
|
|
|
272
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub import { |
11
|
2
|
|
|
2
|
|
5394
|
my $class = shift; |
12
|
2
|
|
|
|
|
7
|
my $target = caller; |
13
|
2
|
50
|
33
|
|
|
27
|
unless ($Moo::MAKERS{$target} && $Moo::MAKERS{$target}{is_class}) { |
14
|
0
|
|
|
|
|
0
|
die "MooX::InsideOut can only be used on Moo classes."; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
Moo::Role->apply_roles_to_object( |
18
|
2
|
|
|
|
|
13
|
Moo->_accessor_maker_for($target), |
19
|
|
|
|
|
|
|
'Method::Generate::Accessor::Role::InsideOut', |
20
|
|
|
|
|
|
|
); |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
# make sure we have our own constructor |
23
|
2
|
|
|
|
|
1341
|
Moo->_constructor_maker_for($target); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |