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