![]() |
![]()
| ![]() |
![]()
NAMEDevel::Events::Filter - A handler role that filters events and delegates to another VERSIONversion 0.10 SYNOPSISpackage MyFilter; use Moose; with qw/Devel::Events::Filter/; sub filter_event { my ( $self, @event ) = @_; return (map { ... } @event); } DESCRIPTIONThis role allows you to build event filters easily: USAGETo use this role you must provide the "filter_event" method. This role provides an optional "handler" attribute and a "new_event" method, and does the Devel::Events::Handler role implicitly. If a sub handler was provided then the filtered event will be delegated to it, but due to the usefulness of filters as debugging aids this is currently optional. In the future this design choice might change. ATTRIBUTES
METHODS
SEE ALSODevel::Events, Devel::Events::Handler, Devel::Events::Filter::Stamp, Devel::Events::Filter::Warn SUPPORTBugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=Devel-Events> (or bug-Devel-Events@rt.cpan.org <mailto:bug-Devel-Events@rt.cpan.org>). AUTHORיובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org> COPYRIGHT AND LICENCEThis software is copyright (c) 2007 by יובל קוג'מן (Yuval Kogman). This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
|