1MakeMethods::Emulator::UmsceordeCro(n3t)ributed Perl DocMuamkeenMteatthioodns::Emulator::mcoder(3)
2
3
4

NAME

6       Class::MakeMethods::Emulator::mcoder - Emulate the mcoder module
7

SYNOPSIS

9         package MyClass;
10
11         use Class::MakeMethods::Emulator::mcoder
12                  [qw(get set)] => [qw(color sound height)],
13                  proxy => [qw(runner run walk stop)],
14                  calculated => weight;
15
16         sub _calculate_weight { shift->ask_weight }
17

DESCRIPTION

19       This module emulates the functionality of the mcoder module, using
20       Class::MakeMethods to generate similar methods.
21
22       For example, the following lines are equivalent:
23
24         use mcoder 'get' => 'foo';
25         use mcoder::get 'foo';
26         use Class::MakeMethods::Template::Hash 'scalar --get' => 'foo';
27
28       You may use this module directly, as shown in the SYNOPSIS above, or
29       you may call "use Class::MakeMethods::Emulator::mcoder
30       '-take_namespace';" to alias the mcoder namespace to this package, and
31       subsequent calls to the original package will be transparently handled
32       by this emulator. To remove the emulation aliasing, call "use
33       Class::MakeMethods::Emulator::mcoder '-release_namespace'".  The same
34       mechanism is also available for the "sugar" subclasses.
35
36       Caution: This affects all subsequent uses of the mcoder module in your
37       program, including those in other modules, and might cause unexpected
38       effects.
39

SEE ALSO

41       See Class::MakeMethods for general information about this distribution.
42
43       See Class::MakeMethods::Emulator for more about this family of
44       subclasses.
45
46       See " mcoder" for documentation of the original module.
47

POD ERRORS

49       Hey! The above document had some coding errors, which are explained
50       below:
51
52       Around line 114:
53           L<> starts or ends with whitespace
54
55
56
57perl v5.28.1                      2003-09-25  MakeMethods::Emulator::mcoder(3)
Impressum