line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Class::Implements; |
2
|
1
|
|
|
1
|
|
869
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
60
|
|
3
|
1
|
|
|
1
|
|
8
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
265
|
|
4
|
|
|
|
|
|
|
our $VERSION = 0.01; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
my %liars; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
use Hook::Queue 'UNIVERSAL::isa' => sub { |
9
|
2
|
|
|
|
|
566
|
my $ref = shift; |
10
|
2
|
|
|
|
|
4
|
my $what = shift; |
11
|
2
|
50
|
33
|
|
|
3
|
return 1 if grep { $_ eq $what } @{ $liars{ ref $ref || $ref } || [] }; |
|
2
|
100
|
|
|
|
46
|
|
|
2
|
|
|
|
|
15
|
|
12
|
1
|
|
|
|
|
5
|
return Hook::Queue->defer(); |
13
|
1
|
|
|
1
|
|
854
|
}; |
|
1
|
|
|
|
|
5442
|
|
|
1
|
|
|
|
|
15
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub import { |
16
|
1
|
|
|
1
|
|
503
|
my $self = shift; |
17
|
1
|
|
|
|
|
3
|
my $what = shift; |
18
|
1
|
|
|
|
|
4
|
my $liar = caller; |
19
|
1
|
|
|
|
|
2
|
push @{ $liars{ $liar } }, $what; |
|
1
|
|
|
|
|
6
|
|
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |