return sub {
my $code = pop;
for (@_) {
- $caller->meta->add_before_method_modifier($_ => $code);
+ $caller->meta->add_after_method_modifier($_ => $code);
}
}
},
return sub {
my $code = pop;
for (@_) {
- $caller->meta->add_before_method_modifier($_ => $code);
+ $caller->meta->add_around_method_modifier($_ => $code);
}
}
},