1 package MooseX::Types::Common;
2 # ABSTRACT: A library of commonly used type constraints
11 cluck("Tried to import the symbols " . join(', ', @_)
12 . " from MooseX::Types::Common.\nDid you mean "
13 . "MooseX::Types::Common::String or MooseX::Type::Common::Numeric?");
23 use MooseX::Types::Common::String qw/SimpleStr/;
24 has short_str => (is => 'rw', isa => SimpleStr);
28 $object->short_str("string\nwith\nbreaks");
31 use MooseX::Types::Common::Numeric qw/PositiveInt/;
32 has count => (is => 'rw', isa => PositiveInt);
40 A set of commonly-used type constraints that do not ship with Moose by default.
46 =item * L<MooseX::Types::Common::String>
48 =item * L<MooseX::Types::Common::Numeric>
50 =item * L<MooseX::Types>
52 =item * L<Moose::Util::TypeConstraints>
58 This distribution was extracted from the L<Reaction> code base by Guillermo