| Devel-Events documentation | view source | Contained in the Devel-Events distribution. |
Devel::Events::Handler - An optional base role for event handlers.
package MyGen;
use Moose;
with qw/Devel::Events::Handler/;
sub new_event {
my ( $self, $type, %data ) = @_;
# ...
}
This convenience role reminds you to add a new_event method.
Handle a fired event.
| Devel-Events documentation | view source | Contained in the Devel-Events distribution. |