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. π
π COPYRIGHT AND LICENCE π
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
- fedora 44: perl-Sub-HandlesVia 0.053005-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms