| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
3
|
|
|
3
|
|
2993
|
use 5.010; |
|
|
3
|
|
|
|
|
11
|
|
|
|
3
|
|
|
|
|
148
|
|
|
2
|
3
|
|
|
3
|
|
17
|
use warnings; |
|
|
3
|
|
|
|
|
7
|
|
|
|
3
|
|
|
|
|
75
|
|
|
3
|
3
|
|
|
3
|
|
16
|
use strict; |
|
|
3
|
|
|
|
|
6
|
|
|
|
3
|
|
|
|
|
156
|
|
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Brickyard::Role::Plugin; |
|
6
|
|
|
|
|
|
|
BEGIN { |
|
7
|
3
|
|
|
3
|
|
79
|
$Brickyard::Role::Plugin::VERSION = '1.111750'; |
|
8
|
|
|
|
|
|
|
} |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
# ABSTRACT: Role to use for plugins |
|
11
|
3
|
|
|
3
|
|
15
|
use Role::Basic 0.12 allow => 'Brickyard::Accessor'; |
|
|
3
|
|
|
|
|
91
|
|
|
|
3
|
|
|
|
|
21
|
|
|
12
|
3
|
|
|
3
|
|
297
|
use Brickyard::Accessor new => 1, rw => [qw(brickyard name)]; |
|
|
3
|
|
|
|
|
6
|
|
|
|
3
|
|
|
|
|
67
|
|
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub plugins_with { |
|
15
|
2
|
|
|
2
|
1
|
33
|
my ($self, $role) = @_; |
|
16
|
2
|
|
|
|
|
45
|
$self->brickyard->plugins_with($role); |
|
17
|
|
|
|
|
|
|
} |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub normalize_param { |
|
20
|
1
|
|
|
1
|
1
|
4
|
my ($self, $param) = @_; |
|
21
|
1
|
50
|
|
|
|
4
|
return [] unless defined $param; |
|
22
|
1
|
50
|
|
|
|
4
|
if (wantarray) { |
|
23
|
1
|
50
|
|
|
|
9
|
return ref $param eq 'ARRAY' ? @$param : $param; |
|
24
|
|
|
|
|
|
|
} else { |
|
25
|
0
|
0
|
|
|
|
|
return ref $param eq 'ARRAY' ? $param : [ $param ]; |
|
26
|
|
|
|
|
|
|
} |
|
27
|
|
|
|
|
|
|
} |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
__END__ |