logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

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

Description

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

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

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

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

Name

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

See Also

       Badger::Base, Badger::Data::Facet.

perl v5.36.0                                       2023-08-28                    Badger::Data::Facet::Class(3pm)

Synopsis

           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

See Also