1Sub::HandlesVia::ToolkiUts(e3r)Contributed Perl DocumentSautbi:o:nHandlesVia::Toolkit(3)
2
3
4
6 Sub::HandlesVia::Toolkit - integration with OO frameworks for
7 Sub::HandlesVia
8
10 Detect what subclass of Sub::HandlesVia::Toolkit is suitable for a
11 class:
12
13 my $toolkit = Sub::HandlesVia->detect_toolkit($class);
14
15 Extract handles_via information from a "has" attribute spec hash:
16
17 my $shvdata = $toolkit->clean_spec($class, $attrname, \%spec);
18
19 This not only returns the data that Sub::HandlesVia needs, it also
20 cleans %spec so that it can be passed to a Moose-like "has" function
21 without it complaining about unrecognized options.
22
23 $toolkit->install_delegations($shvdata) if $shvdata;
24
26 Please report any bugs to
27 <http://rt.cpan.org/Dist/Display.html?Queue=Sub-HandlesVia>.
28
30 Sub::HandlesVia.
31
33 Toby Inkster <tobyink@cpan.org>.
34
36 This software is copyright (c) 2020 by Toby Inkster.
37
38 This is free software; you can redistribute it and/or modify it under
39 the same terms as the Perl 5 programming language system itself.
40
42 THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
43 WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
44 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
45
46
47
48perl v5.34.0 2021-10-22 Sub::HandlesVia::Toolkit(3)