1MakeMethods::Emulator::UAscecresCsoonrtFraisbtu(t3e)d PeMralkeDMoectuhmoednst:a:tEimounlator::AccessorFast(3)
2
3
4

NAME

6       Class::MakeMethods::Emulator::AccessorFast - Emulate Class::Acces‐
7       sor::Fast
8

SYNOPSIS

10           package Foo;
11
12           use base qw(Class::MakeMethods::Emulator::AccessorFast);
13           Foo->mk_accessors(qw(this that whatever));
14
15           # Meanwhile, in a nearby piece of code!
16           # Emulator::AccessorFast provides new().
17           my $foo = Foo->new;
18
19           my $whatever = $foo->whatever;    # gets $foo->{whatever}
20           $foo->this('likmi');              # sets $foo->{this} = 'likmi'
21

DESCRIPTION

23       This module emulates the functionality of Class::Accessor::Fast, using
24       Class::MakeMethods to generate similar methods.
25
26       You may use it directly, as shown in the SYNOPSIS above,
27
28       Furthermore, you may call  "use Class::MakeMethods::Emulator::Accessor‐
29       Fast '-take_namespace';" to alias the Class::Accessor::Fast namespace
30       to this package, and subsequent calls to the original package will be
31       transparently handled by this emulator. To remove the emulation alias‐
32       ing, call "use Class::MakeMethods::Emulator::AccessorFast
33       '-release_namespace'".
34
35       Caution: This affects all subsequent uses of Class::Accessor::Fast in
36       your program, including those in other modules, and might cause unex‐
37       pected effects.
38

SEE ALSO

40       See Class::MakeMethods for general information about this distribution.
41
42       See Class::MakeMethods::Emulator for more about this family of sub‐
43       classes.
44
45       See Class::Accessor::Fast for documentation of the original module.
46
47
48
49perl v5.8.8                       2004-09M-a0k6eMethods::Emulator::AccessorFast(3)
Impressum