line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
13
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
51
|
|
2
|
2
|
|
|
2
|
|
8
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
87
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
our $VERSION = '1.003029'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
use Moose; |
7
|
2
|
|
|
2
|
|
12
|
use namespace::autoclean; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
16
|
|
8
|
2
|
|
|
2
|
|
12274
|
|
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
21
|
|
9
|
|
|
|
|
|
|
extends 'Moose::Meta::Role'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
before 'apply' => sub { |
12
|
|
|
|
|
|
|
my ($self, $other) = @_; |
13
|
|
|
|
|
|
|
return unless $other->isa('Devel::REPL'); |
14
|
|
|
|
|
|
|
if (my $pre = $self->get_method('BEFORE_PLUGIN')) { |
15
|
|
|
|
|
|
|
$pre->body->($other, $self); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
}; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
after 'apply' => sub { |
20
|
|
|
|
|
|
|
my ($self, $other) = @_; |
21
|
|
|
|
|
|
|
return unless $other->isa('Devel::REPL'); |
22
|
|
|
|
|
|
|
if (my $pre = $self->get_method('AFTER_PLUGIN')) { |
23
|
|
|
|
|
|
|
$pre->body->($other, $self); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
}; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |