Maybe something like this?
$object->meta->add_around_method_modifier(does => sub { my ($orig, $self, $role) = @_; return 1 if $role eq 'Some::Role'; $self->$orig($role); });
In reply to Re: Testing with Roles
by tobyink
in thread Testing with Roles
by tj_thompson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |