Add built local::lib
[catagits/Gitalist.git] / local-lib5 / lib / perl5 / MooseX / Types / Common.pm
CommitLineData
3fea05b9 1package MooseX::Types::Common;
2
3use strict;
4use warnings;
5
6our $VERSION = '0.001000';
7
81;
9
10=head1 NAME
11
12MooseX::Types::Common
13
14=head1 SYNOPSIS
15
16 use MooseX::Types::Common::String qw/SimpleStr/;
17 has short_str => (is => 'rw', isa => SimpleStr);
18
19 ...
20 #this will fail
21 $object->short_str("string\nwith\nbreaks");
22
23
24
25 use MooseX::Types::Common::Numeric qw/PositiveInt/;
26 has count => (is => 'rw', isa => PositiveInt);
27
28 ...
29 #this will fail
30 $object->count(-33);
31
32=head1 DESCRIPTION
33
34A set of commonly-used type constraints that do not ship with Moose by default.
35
36=head1 SEE ALSO
37
38=over
39
40=item * L<MooseX::Types::Common::String>
41
42=item * L<MooseX::Types::Common::Numeric>
43
44=item * L<MooseX::Types>
45
46=item * L<Moose::Util::TypeConstraints>
47
48=back
49
50=head1 AUTHORS
51
52This distribution was extracted from the L<Reaction> code base by Guillermo
53Roditi (groditi).
54
55The original authors of this library are:
56
57=over 4
58
59=item * Matt S. Trout
60
61=item * K. J. Cheetham
62
63=item * Guillermo Roditi
64
65=back
66
67=head1 LICENSE
68
69This library is free software, you can redistribute it and/or modify
70it under the same terms as Perl itself.
71
72=cut