Matthew Simon Cavalletto

NAME

Class::MakeMethods::Template::ClassInherit - Associate information with a package

SYNOPSIS

  package MyObject;
  use Class::MakeMethods::Template::ClassInherit (
    scalar          => [ 'foo' ]
  );
  
  package main;
  
  MyObject->foo('bar')
  print MyObject->foo();

DESCRIPTION

These meta-methods provide access to class-specific values. They are similar to Static, except that each subclass has separate values.

ClassInherit:scalar

Creates methods to handle a scalar variable in the declaring package.

See the documentation on Generic:scalar for interfaces and behaviors.

ClassInherit:array

Creates methods to handle a array variable in the declaring package.

See the documentation on Generic:array for interfaces and behaviors.

ClassInherit:hash

Creates methods to handle a hash variable in the declaring package.

See the documentation on Generic:hash for interfaces and behaviors.

SEE ALSO

If you just need scalar accessors, see Class::Data::Inheritable for a very elegant and efficient implementation.

See Class::MakeMethods::Template::Generic for information about the various accessor interfaces subclassed herein.

See Class::MakeMethods::ReadMe for distribution and support information.

LICENSE

This module is free software. It may be used, redistributed and/or modified under the same terms as Perl.

Copyright (c) 2001 Evolution Online Systems, Inc.

Developed by:

  M. Simon Cavalletto, Evolution Online Systems, simonm@evolution.com