Badger::Data::Type::Class(3pm)

Badger::Data::Type::Class3pm

Metaprogramming module for data type classes

Overview

This module implements a subclass of Badger::Class for creating data types.

Methods

This module implements the following methods in addition to those inherited from the Badger::Class base class.

type($type)

This method implements the "type" import hook for specifying the base data type.

size($size)

This method implements the "type" import hook for specifying the data size. NOTE: subject to change

facets($facets)

This method implements the "facets" import hook for specifying validation facets for a data type.

Import hooks

The following hooks can be specified when the module is imported via "use". They correspond directly to the methods documented above.

type

size

facets

Author

Andy Wardley <http://wardley.org/>

From libbadger-perl 0.16-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.