Data::Walk::Extracted::Types - A type library for Data::Walk::Extracted
package Data::Walk::Extracted::MyRole; use Moose::Role; use Data::Walk::Extracted::Types qw( posInt ); use Log::Shiras::Types qw( posInt #See Code for other options ); has 'someattribute' =>( isa => posInt,#Note the lack of quotes ); sub valuetestmethod{ my ( $self, $value ) = @_; return is_posInt( $value ); } no Moose::Role; 1;
This is the custom type class that ships with the Data::Walk::Extracted package. Wherever possible errors to coersions are passed back to the type so coersion failure will be explained.
There are only subtypes in this package! WARNING These types should be considered in a beta state. Future type fixing will be done with a set of tests in the test suit of this package. (currently none are implemented)
See MooseX::Types for general re-use of this module.
Definition: all integers equal to or greater than 0
Coercions: no coersion available
1. write a test suit for the types to permanently define behavior!
2. Add Log::Shiras debugging statements
github Data-Walk-Extracted/issues
Jed Lund
jandrew@cpan.com
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
This software is copyrighted (c) 2013, 2016 by Jed Lund.
version
utf8
MooseX::Types
MooseX::Types::Moose
MooseX::Types::Perl
To install Data::Walk::Extracted, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Walk::Extracted
CPAN shell
perl -MCPAN -e shell install Data::Walk::Extracted
For more information on module installation, please visit the detailed CPAN module installation guide.