line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Curio; |
2
|
|
|
|
|
|
|
our $VERSION = '0.10'; |
3
|
|
|
|
|
|
|
|
4
|
10
|
|
|
10
|
|
2114217
|
use Curio::Declare qw(); |
|
10
|
|
|
|
|
28
|
|
|
10
|
|
|
|
|
256
|
|
5
|
10
|
|
|
10
|
|
4267
|
use Curio::Role qw(); |
|
10
|
|
|
|
|
33
|
|
|
10
|
|
|
|
|
282
|
|
6
|
10
|
|
|
10
|
|
4888
|
use Import::Into; |
|
10
|
|
|
|
|
4881
|
|
|
10
|
|
|
|
|
299
|
|
7
|
10
|
|
|
10
|
|
69
|
use Moo qw(); |
|
10
|
|
|
|
|
20
|
|
|
10
|
|
|
|
|
158
|
|
8
|
10
|
|
|
10
|
|
58
|
use Moo::Role qw(); |
|
10
|
|
|
|
|
22
|
|
|
10
|
|
|
|
|
212
|
|
9
|
|
|
|
|
|
|
|
10
|
10
|
|
|
10
|
|
55
|
use strictures 2; |
|
10
|
|
|
|
|
73
|
|
|
10
|
|
|
|
|
377
|
|
11
|
10
|
|
|
10
|
|
1626
|
use namespace::clean; |
|
10
|
|
|
|
|
21
|
|
|
10
|
|
|
|
|
64
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub import { |
14
|
35
|
|
|
35
|
|
21115
|
my ($class, %args) = @_; |
15
|
|
|
|
|
|
|
|
16
|
35
|
|
|
|
|
89
|
my $target = caller; |
17
|
|
|
|
|
|
|
|
18
|
35
|
|
|
|
|
175
|
Moo->import::into( 1 ); |
19
|
35
|
|
|
|
|
15267
|
Curio::Declare->import::into( 1 ); |
20
|
35
|
|
|
|
|
456
|
namespace::clean->import::into( 1 ); |
21
|
|
|
|
|
|
|
|
22
|
35
|
|
|
|
|
17289
|
my $role = 'Curio::Role'; |
23
|
35
|
100
|
|
|
|
129
|
$role = $args{role} if defined $args{role}; |
24
|
35
|
100
|
|
|
|
118
|
$role = "Curio::Role$role" if $role =~ m{^::}; |
25
|
|
|
|
|
|
|
|
26
|
35
|
|
|
|
|
188
|
Moo::Role->apply_roles_to_package( |
27
|
|
|
|
|
|
|
$target, |
28
|
|
|
|
|
|
|
$role, |
29
|
|
|
|
|
|
|
); |
30
|
|
|
|
|
|
|
|
31
|
35
|
|
|
|
|
26774
|
$target->initialize(); |
32
|
|
|
|
|
|
|
|
33
|
35
|
|
|
|
|
3832
|
return; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
__END__ |