1MakeMethods::Template::UFsleyrweCiognhttr(i3b)uted PerlMDaokceuMmeetnhtoadtsi:o:nTemplate::Flyweight(3)
2
3
4

NAME

6       Class::MakeMethods::Template::Flyweight - Deprecated name for InsideOut
7

SYNOPSIS

9         package MyObject;
10         use Class::MakeMethods::Template::InsideOut (
11           new             => [ 'new' ]
12           scalar          => [ 'foo', 'bar' ]
13         );
14
15         package main;
16
17         my $obj = MyObject->new( foo => "Foozle", bar => "Bozzle" );
18         print $obj->foo();            # Prints Foozle
19         $obj->bar("Bamboozle");       # Sets $obj->{bar}
20

DESCRIPTION

22       Earlier versions of this package included a package named
23       Class::MakeMethods::Template::Flyweight.
24
25       However, in hindsight, this name was poorly chosen, as it suggests that
26       the Flyweight object design pattern is being used, when the
27       functionality is more akin to what's sometimes known as "inside-out
28       objects."
29
30       This functionality is now provided by
31       Class::MakeMethods::Template::InsideOut, of which this is an almost-
32       empty subclass retained to provide backwards compatibility.
33

SEE ALSO

35       Class::MakeMethods::Template::InsideOut.
36
37
38
39perl v5.12.0                      2004-09-06MakeMethods::Template::Flyweight(3)
Impressum