add upper/lowercase for SimpleStr and Str
[gitmo/MooseX-Types-Common.git] / README
1 NAME
2     MooseX::Types::Common - A library of commonly used type constraints
3
4 SYNOPSIS
5         use MooseX::Types::Common::String qw/SimpleStr/;
6         has short_str => (is => 'rw', isa => SimpleStr);
7
8         ...
9         #this will fail
10         $object->short_str("string\nwith\nbreaks");
11
12
13
14         use MooseX::Types::Common::Numeric qw/PositiveInt/;
15         has count => (is => 'rw', isa => PositiveInt);
16
17         ...
18         #this will fail
19         $object->count(-33);
20
21 DESCRIPTION
22     A set of commonly-used type constraints that do not ship with Moose by
23     default.
24
25 SEE ALSO
26     *   MooseX::Types::Common::String
27
28     *   MooseX::Types::Common::Numeric
29
30     *   MooseX::Types
31
32     *   Moose::Util::TypeConstraints
33
34 AUTHORS
35     This distribution was extracted from the Reaction code base by Guillermo
36     Roditi (groditi).
37
38     The original authors of this library are:
39
40     *   Matt S. Trout
41
42     *   K. J. Cheetham
43
44     *   Guillermo Roditi
45
46 LICENSE
47     This library is free software, you can redistribute it and/or modify it
48     under the same terms as Perl itself.
49