Devel::Events::Filter::Callback(3)

NAME
Devel::Events::Filter::Callback - Callback based Devel::Events::Filter

SYNOPSIS
        use Devel::Events::Filter::Callback;

        Devel::Events::Filter::Callback->new(
                callback => sub {
                        my ( @event ) = @_;

                        return if bad_event(@event); # drop it

                        return map { filter($_) } @event; # change it
                },
                handler => $handler,
        );

DESCRIPTION
Duh.

ATTRIBUTES

handler
    Devel::Events::Handler

callback
    a code ref

METHODS

filter_event
    Delegates to "callback"