logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Sub::HandlesVia::Toolkit - integration with OO frameworks for Sub::HandlesVia

Author

       Toby Inkster <tobyink@cpan.org>.

Bugs

       Please report any bugs to <https://github.com/tobyink/p5-sub-handlesvia/issues>.

Description

ThismoduleispartofSub::HandlesVia'sinternalAPI.  It is mostly of interest to people extending
       Sub::HandlesVia.

       Detect what subclass of Sub::HandlesVia::Toolkit is suitable for a class:

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

       Extract handles_via information from a "has" attribute spec hash:

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

       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.

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

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.

perl v5.40.1                                       2025-04-01                      Sub::HandlesVia::Toolkit(3pm)

Name

       Sub::HandlesVia::Toolkit - integration with OO frameworks for Sub::HandlesVia

See Also

       Sub::HandlesVia.

See Also