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.
How to use Sub::HandlesVia with Moo and Moo::Role.
How to use Sub::HandlesVia with Moose and Moose::Role.
How to use Sub::HandlesVia with Mouse and Mouse::Role.
How to use Sub::HandlesVia with Mite.
How to use Sub::HandlesVia with Class::Tiny.
How to use Sub::HandlesVia with Object::Pad classes.
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'.
| Package Version | Update ID | Released | Package Hub Version | Platforms | Subpackages |
|---|---|---|---|---|---|
| 0.050000-bp160.1.11 info | GA Release | 2023-04-06 | 16.0 |
|
|