Thiago Berlitz Rondon > MooseX-Types-CNPJ-0.02 > MooseX::Types::CNPJ

Download:
MooseX-Types-CNPJ-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.02   Source  

NAME ^

MooseX::Types::CNPJ - CNPJ type for Moose classes

SYNOPSIS ^

  package Class;
  use Moose;
  use MooseX::Types::CNPJ qw(CNPJ);
  
  has 'cnpj' => ( is => 'ro', isa => CNPJ );

  package main;
  Class->new( cnpj => '00.000.000/0000-00' );

DESCRIPTION ^

This module lets you constrain attributes to only contain CNPJ. No coercion is attempted.

EXPORT ^

None by default, you'll usually want to request CNPJ explicitly.

AUTHOR ^

Thiago Rondon <thiago@aware.com.br>

Aware TI (http://www.aware.com.br/)

COPYRIGHT ^

This program is Free software, you may redistribute it under the same terms as Perl itself.

syntax highlighting: