17 Sep 2007 01:21:14 UTC
- Distribution: Devel-Events-Generator-ClassPublisher
- Module version: 0.01
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (199 / 3 / 1)
- KwaliteeBus factor: 3
- 40.00% Coverage
- License: unknown
- Activity24 month
- Download (2.96KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionNUFFIN יובל קוג'מן (Yuval Kogman)
Devel::Events::Generator::ClassPublisher - Relay events from Class::Publisher
use Devel::Events::Generator::ClassPublisher; my $gen = Devel::Events::Generator::ClassPublisher->new( handler => $handler, ); $gen->subscribe( $publisher, $event );
This is useful if you wish to place certain events like Devel::Events::Objects's ones in a certain context by later analyzing the in memory log.
- subscribe $publisher, [ $event ]
- unsubscribe $publisher, [ $event ]
These convenience methods are provided if you prefer calling
$eventis omitted then all events are assumed.
- update $publisher, $event, @args
Called by "notify_subscribers" in Class::Publisher. Will raise an event with the value:
$event, publisher => $publisher, @args
A custom filter right after this generator to munge
@argsinto a key value pair list is reccomended if your events are not structured that way to begin with.
Yuval Kogman <email@example.com>
Copyright (c) 2007 Yuval Kogman. All rights reserved This program is free software; you can redistribute it and/or modify it under the terms of the MIT license or the same terms as Perl itself.
Module Install Instructions
To install Devel::Events::Generator::ClassPublisher, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Devel::Events::Generator::ClassPublisher
For more information on module installation, please visit the detailed CPAN module installation guide.