1Sub::HandlesVia::ToolkiUts(e3r)Contributed Perl DocumentSautbi:o:nHandlesVia::Toolkit(3)
2
3
4

NAME

6       Sub::HandlesVia::Toolkit - integration with OO frameworks for
7       Sub::HandlesVia
8

DESCRIPTION

10       This module is part of Sub::HandlesVia's internal API.  It is mostly of
11       interest to people extending Sub::HandlesVia.
12
13       Detect what subclass of Sub::HandlesVia::Toolkit is suitable for a
14       class:
15
16         my $toolkit = Sub::HandlesVia->detect_toolkit($class);
17
18       Extract handles_via information from a "has" attribute spec hash:
19
20         my $shvdata = $toolkit->clean_spec($class, $attrname, \%spec);
21
22       This not only returns the data that Sub::HandlesVia needs, it also
23       cleans %spec so that it can be passed to a Moose-like "has" function
24       without it complaining about unrecognized options.
25
26         $toolkit->install_delegations($shvdata) if $shvdata;
27

BUGS

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

SEE ALSO

33       Sub::HandlesVia.
34

AUTHOR

36       Toby Inkster <tobyink@cpan.org>.
37
39       This software is copyright (c) 2020, 2022 by Toby Inkster.
40
41       This is free software; you can redistribute it and/or modify it under
42       the same terms as the Perl 5 programming language system itself.
43

DISCLAIMER OF WARRANTIES

45       THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
46       WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
47       MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
48
49
50
51perl v5.38.0                      2023-07-21       Sub::HandlesVia::Toolkit(3)
Impressum