Badger::Data::Facet::Class

NAME

Top Close Open

Badger::Data::Facet::Class - metaprogramming module for data facet classes

SYNOPSIS

Top Close Open
package Badger::Data::Facet::Text::Example;

use Badger::Data::Facet::Class
    version   => 0.01,
    type      => 'text',        # base data type
    args      => 'foo bar',     # mandatory arguments
    opts      => 'baz bam';     # optional arguments

DESCRIPTION

Top Close Open

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

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 for a validation facet.

args($args)

Top Close Open

This method implements the args import hook for specifying the mandatory configuration arguments for a validation fact.

opts($opts)

Top Close Open

This method implements the opts import hook for specifying the optional configuration arguments for a validation facet.

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