NAME
Devel::Events::Handler::Callback - An event handler that delegates to code references.
SYNOPSIS
use Devel::Events::Handler::Callback;
my $h = Devel::Events::Handler::Callback->new(
callback => sub {
my ( $type, %data ) = @_;
# ...
},
);
DESCRIPTION
This object will let you easily create handlers that are callbacks. This is used extensively in the test suites.
ATTRIBUTES
- callback
-
Accepts a code reference.
Required.