NAME

Reindeer::Types - Reindeer combined type library

VERSION

This document describes version 0.014 of Reindeer::Types - released August 31, 2012 as part of Reindeer.

SYNOPSIS

package Foo;
use Moose;
use Reindeer::Types ':all';

DESCRIPTION

This is a combined type library, allowing for the quick and easy import of all the type libraries Reindeer provides by default. Its primary goal is to make the types easily available even when using Reindeer isn't an option.

It is not necessary (or prudent) to directly use this in a Reindeer class (or role).

TYPES

LoadableClass

A normal class / package.

LoadableRole

Like LoadableClass, except the loaded package must be a Moose::Role.

SimpleStr

A Str with no new-line characters.

NonEmptySimpleStr

A Str with no new-line characters and length > 0

LowerCaseSimpleStr

A Str with no new-line characters, length > 0 and no uppercase characters A coercion exists via lc from NonEmptySimpleStr

UpperCaseSimpleStr

A Str with no new-line characters, length > 0 and no lowercase characters A coercion exists via uc from NonEmptySimpleStr

Password

StrongPassword

NonEmptyStr

A Str with length > 0

LowerCaseStr

A Str with length > 0 and no uppercase characters. A coercion exists via lc from NonEmptyStr

UpperCaseStr

A Str with length > 0 and no lowercase characters. A coercion exists via uc from NonEmptyStr

NumericCode

A Str with no new-line characters that consists of only Numeric characters. Examples include, Social Security Numbers, PINs, Postal Codes, HTTP Status Codes, etc. Supports attempting to coerce from a string that has punctuation in it ( e.g credit card number 4111-1111-1111-1111 ).

PositiveNum

PositiveOrZeroNum

PositiveInt

PositiveOrZeroInt

NegativeNum

NegativeOrZeroNum

NegativeInt

NegativeOrZeroInt

SingleDigit

IxHash

Base type: TiedHash

This type coerces from ArrayRef. As of 0.004 we no longer coerce from HashRef, as that lead to 1) annoyingly easy to miss errors involving expecting $thing-attribute( { a => 1, b => 2, ... } )> to result in proper ordering; and 2) the Hash native trait appearing to work normally but instead silently destroying the preserved order (during certain write operations).

(See also MooseX::Types::Tied::Hash::IxHash.)

Dir

has 'dir' => (
    is       => 'ro',
    isa      => Dir,
    required => 1,
    coerce   => 1,
);

(See also MooseX::Types::Path::Class.)

File

has 'file' => (
    is       => 'ro',
    isa      => File,
    required => 1,
    coerce   => 1,
);

(See also MooseX::Types::Path::Class.)

MooseX::Types::Moose

We provide all Moose native types by including MooseX::Types::Moose; see that package for more information.

SEE ALSO

Please see those modules/websites for more information related to this module.

SOURCE

The development version is on github at http://github.com/RsrchBoy/reindeer and may be cloned from git://github.com/RsrchBoy/reindeer.git

BUGS

Please report any bugs or feature requests on the bugtracker website https://github.com/RsrchBoy/reindeer/issues

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

Chris Weyl <cweyl@alumni.drew.edu>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2011 by Chris Weyl.

This is free software, licensed under:

The GNU Lesser General Public License, Version 2.1, February 1999

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 180:

Nested L<> are illegal. Pretending inner one is X<...> so can continue looking for other errors.

Nested L<> are illegal. Pretending inner one is X<...> so can continue looking for other errors.

Around line 184:

Nested L<> are illegal. Pretending inner one is X<...> so can continue looking for other errors.

Nested L<> are illegal. Pretending inner one is X<...> so can continue looking for other errors.