Class::MakeMethods::Template::Class(3pm)

Class::MakeMethods::Template::Class3pm

Associate information with a package

Usage

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

Overview

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

Class:scalar

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

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

Class:array

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

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

Class:hash

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

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

Releases

10 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0–5.0
  2. 6.0–8
  3. 9–11
  4. 12–13

From libclass-makemethods-perl 1.01-7 in Debian 13 (Trixie). Parsed by carta from the page's man source.