Class::Trait::Config(3pm)

Class::Trait::Config3pm

Trait configuration information storage package.

Usage

This package is used internally by Class::Trait to store Trait configuration information. It is also used by Class::Trait::Reflection to gather information about a Trait.

Overview

This class is a intentionally very C-struct-like. It is meant to help encapsulate the Trait configuration information in a clean easy to access way.

This class is effectively sealed. It is not meant to be extended, only to be used.

Methods

new

Creates a new empty Class::Trait::Config object, with fields initialized to empty containers.

name

An accessor to the "name" string field of the Class::Trait::Config object.

sub_traits

An accessor to the "sub_traits" array reference field of the Class::Trait::Config object.

requirements

An accessor to the "requirements" hash reference field of the Class::Trait::Config object. Note, the requirements field is a hash reference to speed requirement lookup, the values of the hash are simply booleans.

methods

An accessor to the "methods" hash reference field of the Class::Trait::Config object.

overloads

An accessor to the "overloads" hash reference field of the Class::Trait::Config object.

conflicts

An accessor to the "conflicts" hash reference field of the Class::Trait::Config object. Note, the conflicts field is a hash reference to speed conflict lookup, the values of the hash are simply booleans.

clone

Provides deep copy functionality for the Class::Trait::Config object. This will be sure to copy all sub-elements of the object, but not to attempt to copy and subroutine references found.

Releases

7 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0
  2. 6.0–7
  3. 8–10
  4. 11

Author

Stevan Little <[email protected]>

From libclass-trait-perl 0.31-4.1 in Debian 11 (Bullseye). Parsed by carta from the page's man source.