Badger::Data::Type::Class

NAME

Top Close Open

Badger::Data::Type::Class - metaprogramming module for data type classes

SYNOPSIS

Top Close Open

DESCRIPTION

Top Close Open

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

METHODS

Top Close Open

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

type($type)

Top Close Open

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

size($size)

Top Close Open

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

facets($facets)

Top Close Open

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

IMPORT HOOKS

Top Close Open

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

type

Top Close Open

size

Top Close Open

facets

Top Close Open

AUTHOR

Top Close Open

Andy Wardley http://wardley.org/

COPYRIGHT

Top Close Open

Copyright (C) 2008-2012 Andy Wardley. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Fork Me on Github