1MakeMethods::Standard(3U)ser Contributed Perl DocumentatiMoankeMethods::Standard(3)
2
3
4

NAME

6       Class::MakeMethods::Standard - Make common object accessors
7

SYNOPSIS

9         package MyObject;
10         use Class::MakeMethods::Standard::Hash (
11           new => 'new',
12           scalar => [ 'foo', 'bar' ],
13           array => 'my_list',
14           hash => 'my_index',
15         );
16

DESCRIPTION

18       This document describes the various subclasses of Class::MakeMethods
19       included under the Standard::* namespace, and the method types each one
20       provides.
21
22       The Standard subclasses provide a parameterized set of method-
23       generation implementations.
24
25       Subroutines are generated as closures bound to a hash containing the
26       method name and (optionally) additional parameters.
27

USAGE AND SYNTAX

29       When you "use" a subclass of this package, the method declarations you
30       provide as arguments cause subroutines to be generated and installed in
31       your module. You can also omit the arguments to "use" and instead make
32       methods at runtime by passing the declarations to a subsequent call to
33       make().
34
35       You may include any number of declarations in each call to "use" or
36       make(). If methods with the same name already exist, earlier calls to
37       "use" or make() win over later ones, but within each call, later
38       declarations superceed earlier ones.
39
40       You can install methods in a different package by passing
41       "-target_class => package" as your first arguments to "use" or "make".
42
43       See "USAGE" in Class::MakeMethods for more details.
44

SEE ALSO

46       See Class::MakeMethods for general information about this distribution.
47
48       For distribution, installation, support, copyright and license
49       information, see Class::MakeMethods::Docs::ReadMe.
50
51
52
53perl v5.36.0                      2023-01-20          MakeMethods::Standard(3)
Impressum