| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
2
|
|
|
2
|
|
7
|
use strict; |
|
|
2
|
|
|
|
|
2
|
|
|
|
2
|
|
|
|
|
50
|
|
|
2
|
2
|
|
|
2
|
|
7
|
use warnings; |
|
|
2
|
|
|
|
|
3
|
|
|
|
2
|
|
|
|
|
83
|
|
|
3
|
|
|
|
|
|
|
package Devel::REPL::Meta::Plugin; |
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '1.003028'; |
|
6
|
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
7
|
use Moose; |
|
|
2
|
|
|
|
|
2
|
|
|
|
2
|
|
|
|
|
10
|
|
|
8
|
2
|
|
|
2
|
|
8686
|
use namespace::autoclean; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
13
|
|
|
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; |