View on
MetaCPAN
search.cpan.org is shutting down
For details read Perl NOC. After June 25th this page will redirect to MetaCPAN.org
יובל קוג'מן (Yuval Kogman) > Devel-Events-0.08 > Devel::Events::Handler

Download:
Devel-Events-0.08.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  4
Open  0
View/Report Bugs
Source   Latest Release: Devel-Events-0.09

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: