1Sub::HandlesVia::HandleUrsLeirbrCaornyt:r:iBbluetSseusdbe:dP:(eH3ra)lndDloecsuVmiean:t:aHtainodnlerLibrary::Blessed(3)
2
3
4

NAME

6       Sub::HandlesVia::HandlerLibrary::Blessed - library of object-related
7       methods
8

SYNOPSIS

10         package My::Class {
11           use Moo;
12           use Sub::HandlesVia;
13           use Types::Standard 'Object';
14           use HTTP::Tiny;
15           has http_ua => (
16             is => 'rwp',
17             isa => Object,
18             handles_via => 'Blessed',
19             handles => {
20               'http_get'  => 'get',
21               'http_post' => 'post',
22             },
23             default => sub { HTTP::Tiny->new },
24           );
25         }
26

DESCRIPTION

28       This is a library of methods for Sub::HandlesVia.
29

DELEGATABLE METHODS

31       Unlike the other libraries supplied by Sub::HandlesVia, this library
32       allows you to delegate to any method name.
33
34       It assumes that the attribute value is a blessed object, and calls the
35       correspondingly named method on it.
36
37       Moo, Moose, Mouse, and Mite all have this kind of delegation built-in
38       anyway, but this module allows you to perform the delegation using
39       Sub::HandlesVia. This may be useful for Object::Pad and Class::Tiny,
40       which don't have a built-in delegation feature.
41

BUGS

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

SEE ALSO

47       Sub::HandlesVia.
48

AUTHOR

50       Toby Inkster <tobyink@cpan.org>.
51
53       This software is copyright (c) 2022 by Toby Inkster.
54
55       This is free software; you can redistribute it and/or modify it under
56       the same terms as the Perl 5 programming language system itself.
57

DISCLAIMER OF WARRANTIES

59       THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
60       WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
61       MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
62
63
64
65perl v5.38.0                      20S2u3b-:0:7H-a2n1dlesVia::HandlerLibrary::Blessed(3)
Impressum