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