יובל קוג'מן (Yuval Kogman) > Devel-Events-0.08 > Devel::Events::Handler

Download:
Devel-Events-0.08.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  0
View/Report Bugs
Source  

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.

syntax highlighting: