Sub::Ha...Toolkit(3)

✨ NAME ✨

Sub::HandlesVia::Toolkit β€” it's giving integration with OO frameworks for Sub::HandlesVia, bestie πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so real talk: this module is part of Sub::HandlesVia's internal API. It's mostly of interest to people extending Sub::HandlesVia β€” like, if that's not you, you can still hang out, but this is the backstage pass situation, yk? πŸŽ€

Here's the vibe: it detects what subclass of Sub::HandlesVia::Toolkit is suitable for a class:

my $toolkit = Sub::HandlesVia->detect_toolkit($class);

Then it can extract handles_via information from a has attribute spec hash:

my $shvdata = $toolkit->clean_spec($class, $attrname, \%spec);

And here's the part that's lowkey iconic: this not only returns the data that Sub::HandlesVia needs, it also cleans %spec so that it can be passed to a Moose-like has function without it complaining about unrecognized options. No cap, it tidies up so the has function doesn't start drama πŸ™ˆ

$toolkit->install_delegations($shvdata) if $shvdata;

πŸ’€ BUGS πŸ’€

Please report any bugs to <https://github.com/tobyink/p5-sub-handlesvia/issues>. Fr fr, they wanna hear from you 🫢


🌈 SEE ALSO 🌈

  • Sub::HandlesVia.

πŸ‘‘ AUTHOR πŸ‘‘

Toby Inkster <tobyink@cpan.org>. Periodt. πŸ’œ


This software is copyright (c) 2020, 2022 by Toby Inkster.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.


🧚 DISCLAIMER OF WARRANTIES 🧚

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Like, zero promises, bestie, it's coming as it is 😭


Okay so this lil' page is from Sub::HandlesVia::Toolkit, part of the User Contributed Perl Documentation, and it's stamped perl v5.42.0 dated 2026-02-11. Slay, go extend some modules πŸ’–βœ¨

πŸ“¦ where this page comes from