line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Spoon::Plugin; |
2
|
1
|
|
|
1
|
|
1684
|
use Spoon::Base -Base; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
12
|
|
3
|
1
|
|
|
1
|
|
679
|
|
|
1
|
|
|
1
|
|
3
|
|
|
1
|
|
|
|
|
31
|
|
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
266
|
|
4
|
0
|
|
|
0
|
0
|
|
sub class_title_prefix { () } |
|
0
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
|
6
|
0
|
|
|
0
|
0
|
|
sub class_id { |
7
|
0
|
|
|
|
|
|
my $package = ref $self; |
8
|
0
|
|
|
|
|
|
$package =~ s/.*:://; |
9
|
0
|
|
|
|
|
|
lc($package); |
10
|
|
|
|
|
|
|
} |
11
|
|
|
|
|
|
|
|
12
|
0
|
|
|
0
|
0
|
|
sub class_title { |
13
|
0
|
|
|
|
|
|
join ' ', map { |
14
|
0
|
|
|
|
|
|
s/(.*)/\u$1/; |
15
|
0
|
|
|
|
|
|
$_; |
16
|
|
|
|
|
|
|
} $self->class_title_prefix, split '_', $self->class_id; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
0
|
|
|
0
|
0
|
|
sub register { |
20
|
0
|
0
|
|
|
|
|
$self->hub->registry->add(action => $self->class_id, 'process') |
21
|
|
|
|
|
|
|
if $self->can('process'); |
22
|
0
|
|
|
|
|
|
return $self; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |