Mixin::...:Methods(3)

πŸ“¦ version 2.000, in alpine 3.24

πŸ’… Mixin::Event::Dispatch::Methods(3) β€” User Contributed Perl Documentation πŸ¦‹

okay so bestie, this is the manual page for Mixin::Event::Dispatch::Methods, and it's giving "importer class for applying Mixin::Event::Dispatch methods without inheritance." Periodt. πŸ’–

🌸 NAME 🌸

Mixin::Event::Dispatch::Methods β€” importer class for applying Mixin::Event::Dispatch methods without inheritance.

✨ VERSION ✨

version 2.000 β€” yes, the icon. πŸ‘‘

πŸŽ€ SYNOPSIS πŸŽ€

Your setup vibes like this, fr fr:

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

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

πŸ’– DESCRIPTION πŸ’–

It provides the following Exporter tags, babes:

πŸ’… :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, so 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:

  • "invoke_event" in Mixin::Event::Dispatch
  • "subscribe_to_event" in Mixin::Event::Dispatch
  • "unsubscribe_from_event" in Mixin::Event::Dispatch
  • "add_handler_for_event" in Mixin::Event::Dispatch
  • "event_handlers" in Mixin::Event::Dispatch
  • "clear_event_handlers" in Mixin::Event::Dispatch

πŸ“ :basic

Imports only the bare minimum methods for subscribing/unsubscribing:

  • "invoke_event" in Mixin::Event::Dispatch
  • "subscribe_to_event" in Mixin::Event::Dispatch
  • "unsubscribe_from_event" in Mixin::Event::Dispatch
  • "event_handlers" in Mixin::Event::Dispatch

πŸ‘‘ AUTHOR πŸ‘‘

Tom Molesworth <cpan@perlsite.co.uk> β€” that's the author, bestie.

🌈 LICENSE 🌈

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


And that's the whole page, slay. πŸ’œ This beauty's footer says perl v5.42.2, dated 2026-02-15, and the page title down there is Mixin::...:Methods(3). Bye bestie! πŸŽ€βœ¨

πŸ“¦ where this page comes from