30 Mar 2012 08:52:34 UTC
- Distribution: MooseX-Types-PIS
- Module version: 0.02
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (397 / 0 / 0)
- KwaliteeBus factor: 1
- % Coverage
- License: perl_5
- Download (26.42KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- Breno G. de Oliveira, C<< <garu at cpan.org> >>
- SEE ALSO
- LICENSE AND COPYRIGHT
MooseX::Types::PIS - PIS type for Moose classes
package Class; use Moose; use MooseX::Types::PIS 'PIS'; has 'pis' => ( is => 'ro', isa => PIS ); package main; Class->new( pis => '121.51144.13-7' );
This module lets you constrain attributes to only contain Brazilian PIS numbers. No coercion is attempted.
'PIS' stands for Brazil's Programa de Integração Social. It is also referred to as 'PIS/PASEP'.
None by default, you'll usually want to request
Breno G. de Oliveira,
<garu at cpan.org>
Please report any bugs or feature requests to
bug-moosex-types-pis at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MooseX-Types-PIS. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
This module is just a simple wrapper around Adriano Ferreira's excellent Business::BR::PIS validator. He did all the actual work :)
Also, thanks to Thiago Rondon for his other MooseX::Types wrappers around Business::BR::Ids - the idea for this, and several chunks of code, were shamelessly taken from those modules, nearly verbatim.
Copyright 2009 Breno G. de Oliveira.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
Module Install Instructions
To install MooseX::Types::PIS, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install MooseX::Types::PIS
For more information on module installation, please visit the detailed CPAN module installation guide.
|s||Focus search bar|
|?||Bring up this help dialog|
|g p||Go to pull requests|
|g i||go to github issues (only if github is preferred repository)|
|g a||Go to author|
|g c||Go to changes|
|g i||Go to issues|
|g d||Go to dist|
|g r||Go to repository/SCM|
|g s||Go to source|
|g b||Go to file browse|