Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
MakeMethods::Template:UserwContributed PerlMakeMethods::Template::Flyweight(3)

NAME
       Class::MakeMethods::Template::Flyweight - Deprecated name for InsideOut

SYNOPSIS
	 package MyObject;
	 use Class::MakeMethods::Template::InsideOut (
	   new		   => [	'new' ]
	   scalar	   => [	'foo', 'bar' ]
	 );

	 package main;

	 my $obj = MyObject->new( foo => "Foozle", bar => "Bozzle" );
	 print $obj->foo();	       # Prints	Foozle
	 $obj->bar("Bamboozle");       # Sets $obj->{bar}

DESCRIPTION
       Earlier versions	of this	package	included a package named
       Class::MakeMethods::Template::Flyweight.

       However,	in hindsight, this name	was poorly chosen, as it suggests that
       the Flyweight object design pattern is being used, when the
       functionality is	more akin to what's sometimes known as "inside-out
       objects."

       This functionality is now provided by
       Class::MakeMethods::Template::InsideOut,	of which this is an almost-
       empty subclass retained to provide backwards compatibility.

SEE ALSO
       Class::MakeMethods::Template::InsideOut.

perl v5.24.1			  2004-09-0MakeMethods::Template::Flyweight(3)

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Class::MakeMethods::Template::Flyweight&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help