1 package Devel::REPL::Meta::Plugin;
5 extends 'Moose::Meta::Role';
7 before 'apply' => sub {
8 my ($self, $other) = @_;
9 if (my $pre = $self->get_method('BEFORE_PLUGIN')) {
10 $pre->body->($other, $self);
14 after 'apply' => sub {
15 my ($self, $other) = @_;
16 if (my $pre = $self->get_method('AFTER_PLUGIN')) {
17 $pre->body->($other, $self);