1MakeMethods::Template::UCslearssC(o3n)tributed Perl DocuMmaeknetMaettihoonds::Template::Class(3)
2
3
4

NAME

6       Class::MakeMethods::Template::Class - Associate information with a
7       package
8

SYNOPSIS

10         package MyObject;
11         use Class::MakeMethods::Template::Class (
12           scalar          => [ 'foo' ]
13         );
14
15         package main;
16
17         MyObject->foo('bar')
18         print MyObject->foo();
19

DESCRIPTION

21       These meta-methods provide access to class-specific values. They are
22       similar to Static, except that each subclass has separate values.
23
24   Class:scalar
25       Creates methods to handle a scalar variable in the declaring package.
26
27       See the documentation on "Generic:scalar" for interfaces and behaviors.
28
29   Class:array
30       Creates methods to handle a array variable in the declaring package.
31
32       See the documentation on "Generic:array" for interfaces and behaviors.
33
34   Class:hash
35       Creates methods to handle a hash variable in the declaring package.
36
37       See the documentation on "Generic:hash" for interfaces and behaviors.
38
39
40
41perl v5.34.0                      2022-01-21   MakeMethods::Template::Class(3)
Impressum