line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Curio; |
2
|
|
|
|
|
|
|
our $VERSION = '0.11'; |
3
|
|
|
|
|
|
|
|
4
|
10
|
|
|
10
|
|
1905713
|
use Curio::Declare qw(); |
|
10
|
|
|
|
|
26
|
|
|
10
|
|
|
|
|
226
|
|
5
|
10
|
|
|
10
|
|
3795
|
use Curio::Role qw(); |
|
10
|
|
|
|
|
31
|
|
|
10
|
|
|
|
|
251
|
|
6
|
10
|
|
|
10
|
|
4106
|
use Import::Into; |
|
10
|
|
|
|
|
4354
|
|
|
10
|
|
|
|
|
263
|
|
7
|
10
|
|
|
10
|
|
59
|
use Moo qw(); |
|
10
|
|
|
|
|
21
|
|
|
10
|
|
|
|
|
173
|
|
8
|
10
|
|
|
10
|
|
46
|
use Moo::Role qw(); |
|
10
|
|
|
|
|
17
|
|
|
10
|
|
|
|
|
182
|
|
9
|
|
|
|
|
|
|
|
10
|
10
|
|
|
10
|
|
45
|
use strictures 2; |
|
10
|
|
|
|
|
66
|
|
|
10
|
|
|
|
|
335
|
|
11
|
10
|
|
|
10
|
|
1536
|
use namespace::clean; |
|
10
|
|
|
|
|
20
|
|
|
10
|
|
|
|
|
51
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub import { |
14
|
35
|
|
|
35
|
|
18604
|
my ($class, %args) = @_; |
15
|
|
|
|
|
|
|
|
16
|
35
|
|
|
|
|
80
|
my $target = caller; |
17
|
|
|
|
|
|
|
|
18
|
35
|
|
|
|
|
156
|
Moo->import::into( 1 ); |
19
|
35
|
|
|
|
|
13854
|
Curio::Declare->import::into( 1 ); |
20
|
35
|
|
|
|
|
383
|
namespace::clean->import::into( 1 ); |
21
|
|
|
|
|
|
|
|
22
|
35
|
|
|
|
|
17620
|
my $role = 'Curio::Role'; |
23
|
35
|
100
|
|
|
|
121
|
$role = $args{role} if defined $args{role}; |
24
|
35
|
100
|
|
|
|
116
|
$role = "Curio::Role$role" if $role =~ m{^::}; |
25
|
|
|
|
|
|
|
|
26
|
35
|
|
|
|
|
184
|
Moo::Role->apply_roles_to_package( |
27
|
|
|
|
|
|
|
$target, |
28
|
|
|
|
|
|
|
$role, |
29
|
|
|
|
|
|
|
); |
30
|
|
|
|
|
|
|
|
31
|
35
|
|
|
|
|
24288
|
$target->initialize(); |
32
|
|
|
|
|
|
|
|
33
|
35
|
|
|
|
|
3382
|
return; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
__END__ |