Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Mixin::Event::DispatchUsertContributed Perl Mixin::Event::Dispatch::Methods(3)

NAME
       Mixin::Event::Dispatch::Methods - importer class	for applying
       Mixin::Event::Dispatch methods without inheritance

VERSION
       version 2.000

SYNOPSIS
	package	Role::WithEvents;
	use Moo::Role;
	use Mixin::Event::Dispatch::Methods qw(:all);

	package	Some::Class;
	use Moo;
	with 'Role::WithEvents';

DESCRIPTION
       Provides	the following Exporter tags:

   :all
       Imports all known methods. Probably a good default if this is being
       applied to a specific role class. The methods imported may change in
       future, use :v2 if you want to limit to a specific list that will never
       change.

   :v2
       Supports	the methods provided by	the 2.000 API.

       o   "invoke_event" in Mixin::Event::Dispatch

       o   "subscribe_to_event"	in Mixin::Event::Dispatch

       o   "unsubscribe_from_event" in Mixin::Event::Dispatch

       o   "add_handler_for_event" in Mixin::Event::Dispatch

       o   "event_handlers" in Mixin::Event::Dispatch

       o   "clear_event_handlers" in Mixin::Event::Dispatch

   :basic
       Imports only the	bare minimum methods for subscribing/unsubscribing.

       o   "invoke_event" in Mixin::Event::Dispatch

       o   "subscribe_to_event"	in Mixin::Event::Dispatch

       o   "unsubscribe_from_event" in Mixin::Event::Dispatch

       o   "event_handlers" in Mixin::Event::Dispatch

AUTHOR
       Tom Molesworth <cpan@perlsite.co.uk>

LICENSE
       Copyright Tom Molesworth	2011-2015, based on code originally part of
       EntityModel.  Licensed under the	same terms as Perl itself.

perl v5.24.1			  2015-09-14Mixin::Event::Dispatch::Methods(3)

NAME | VERSION | SYNOPSIS | DESCRIPTION | AUTHOR | LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Mixin::Event::Dispatch::Methods&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help