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

FreeBSD Manual Pages

  
 
  

home | help
MixinFactory::InsideOuUserrContributed Perl DocuMixinFactory::InsideOutAttr(3)

NAME
       Class::MixinFactory::InsideOutAttr - Method maker for inside out	data

SYNOPSIS
	 package My::Class;
	 use Class::MixinFactory::InsideOutAttr	qw( foo	bar baz	);

	 sub new { ... }

	 package main;

	 My::Class->foo( 'Foozle' );
	 print My::Class->foo();

	 my $object = My::Class->new();

	 $object->foo( 'Bolix' );
	 print $object->foo();

DESCRIPTION
       A simple	method maker with opaque data storage.

   Usage
       To generate accessor methods for	your class, use	this package and pass
       the desired method names	to the use or import statement.

       Generates get/set accessor methods which	can store values for a class
       or its instances. Each method stores the	values associated with various
       objects in an hash keyed	by the object's	stringified identity.

   Destruction
       A DESTROY method	is installed to	remove data for	expired	objects	from
       the storage hash. (If the DESTROY method	is not called, your program
       will not	release	this data and memory will be wasted.)

       If you implement	your own DESTROY method, it should also	call
       "Class::MixinFactory::InsideOutAttr::destroy($self)".

SEE ALSO
       This class is used internally by	Class::MixinFactory.

       This is similar to the functionality provided by
       Class::MakeMethods::Template::InsideOut;	for a more generalized
       approach	to this	issue see Class::MakeMethods.

       For distribution, installation, support,	copyright and license
       information, see	Class::MixinFactory::ReadMe.

perl v5.24.1			  2004-11-15	MixinFactory::InsideOutAttr(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::MixinFactory::InsideOutAttr&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help