Package Info

perl-Sub-HandlesVia


Alternative handles_via implementation


Unspecified

If you've used Moose's native attribute traits, or MooX::HandlesVia before, you should have a fairly good idea what this does.

Why re-invent the wheel? Well, this is an implementation that should work okay with Moo, Moose, Mouse, and any other OO toolkit you throw at it. One ring to rule them all, so to speak.

For details of how to use it, see the manual.

  • Sub::HandlesVia::Manual::WithMoo

How to use Sub::HandlesVia with Moo and Moo::Role.

  • Sub::HandlesVia::Manual::WithMoose

How to use Sub::HandlesVia with Moose and Moose::Role.

  • Sub::HandlesVia::Manual::WithMouse

How to use Sub::HandlesVia with Mouse and Mouse::Role.

  • Sub::HandlesVia::Manual::WithMite

How to use Sub::HandlesVia with Mite.

  • Sub::HandlesVia::Manual::WithClassTiny

How to use Sub::HandlesVia with Class::Tiny.

  • Sub::HandlesVia::Manual::WithObjectPad

How to use Sub::HandlesVia with Object::Pad classes.

  • Sub::HandlesVia::Manual::WithGeneric

How to use Sub::HandlesVia with other OO toolkits, and hand-written Perl classes.

Note: as Sub::HandlesVia needs to detect which toolkit you are using, and often needs to detect whether your package is a class or a role, it needs to be loaded after Moo/Moose/Mouse/etc. Your 'use Moo' or 'use Moose::Role' or whatever needs to be before your 'use Sub::HandlesVia'.


License: Artistic-1.0 OR GPL-1.0-or-later
URL: https://metacpan.org/release/Sub-HandlesVia

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.050000-bp160.1.11 info GA Release 2023-04-06 16.0
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Sub-HandlesVia