Sub::HandlesVia::Toolkit - integration with OO frameworks for 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:
has
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.
%spec
$toolkit->install_delegations($shvdata) if $shvdata;
Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=Sub-HandlesVia.
Sub::HandlesVia.
Toby Inkster <tobyink@cpan.org>.
This software is copyright (c) 2020 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.
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.
To install Sub::HandlesVia, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sub::HandlesVia
CPAN shell
perl -MCPAN -e shell install Sub::HandlesVia
For more information on module installation, please visit the detailed CPAN module installation guide.