Delete or disable a Method Modifier
[email protected] (Brian ROONEY) Mon, 29 Apr 2013 20:07:20 +0200
| Newsgroups | perl.moose |
|---|---|
| Message-ID | <3176460F0F455A44B2E93431E34FC86C22C9342316@EXDCVYMBSTM005.EQ1STM.local> |
Anyone know a bit of meta or other way to delete a MM or disable a MM from firing?
package Stuff;
with 'OtherStuff'; # run()
after 'run' => sub { @_[0]->check };
sub check { # yadda... }
__PACKAGE__->meta->make_immutable;no Moose;1;
my $p = Stuff->new;
# delete or disable MM so I can test check() autonomously
$p->run;
$p->check;