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

Download:
Devel-Events-0.08.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  0
View/Report Bugs
Source  

NAME ^

Devel::Events::Filter::HandlerOptional - A role for filters that are useful even without a handler.

SYNOPSIS ^

        package MyFilter;
        use Moose;

        with qw/Devel::Events::Filter::HandlerOptional/;

        sub filter_event {
                # do something
        }

DESCRIPTION ^

This is just like Devel::Events::Filter except it won't complain if handler is unset, but instead just drop events.

SEE ALSO ^

Deve::Events::Filter::Warn

syntax highlighting: