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 functional‐
27       ity is more akin to what's sometimes known as "inside-out objects."
28
29       This functionality is now provided by Class::MakeMethods::Tem‐
30       plate::InsideOut, of which this is an almost-empty subclass retained to
31       provide backwards compatibility.
32

SEE ALSO

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