The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Devel::Events::Handler - An optional base role for event handlers.

SYNOPSIS

package MyGen;
use Moose;

with qw/Devel::Events::Handler/;

sub new_event {
	my ( $self, $type, %data ) = @_;

	# ...
}

DESCRIPTION

This convenience role reminds you to add a new_event method.

REQUIRED METHODS

new_event @event

Handle a fired event.