Jed Lund > Data-Walk-Extracted-0.024.004 > Data::Walk::Extracted::Types

Download:
Data-Walk-Extracted-0.024.004.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: v0.24.4   Source  

NAME ^

Data::Walk::Extracted::Types - A type library for Data::Walk::Extracted

SYNOPSIS ^

    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;

DESCRIPTION ^

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.

Types ^

posInt

Definition: all integers equal to or greater than 0

Coercions: no coersion available

TODO ^

1. write a test suit for the types to permanently define behavior!

2. Add Log::Shiras debugging statements

SUPPORT ^

github Data-Walk-Extracted/issues

AUTHOR ^

Jed Lund

jandrew@cpan.com

COPYRIGHT ^

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.

DEPENDENCIES ^

version

MooseX::Types

MooseX::Types::Moose

SEE ALSO ^

MooseX::Types::Perl

syntax highlighting: