X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FUtil%2FTypeConstraints.pm;h=dc21de893724138c7cbdfe137f266dffb4fc112c;hb=19320607dd1e6217be5f0f7f68db79465d0fb6d9;hp=f68b57f97437a2d9cb199e1a964fc5b3a3e7c350;hpb=2840a3b25fac3ab606e2053ce9ef30b39687270d;p=gitmo%2FMoose.git diff --git a/lib/Moose/Util/TypeConstraints.pm b/lib/Moose/Util/TypeConstraints.pm index f68b57f..dc21de8 100644 --- a/lib/Moose/Util/TypeConstraints.pm +++ b/lib/Moose/Util/TypeConstraints.pm @@ -9,7 +9,7 @@ use List::MoreUtils qw( all ); use Scalar::Util 'blessed'; use Moose::Exporter; -our $VERSION = '0.65'; +our $VERSION = '0.68'; $VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; @@ -702,7 +702,7 @@ Moose::Util::TypeConstraints - Type constraint system for Moose =head1 DESCRIPTION This module provides Moose with the ability to create custom type -contraints to be used in attribute definition. +constraints to be used in attribute definition. =head2 Important Caveat @@ -783,7 +783,7 @@ literally interpreted as a type name. B The C type constraint for the most part works correctly now, but edge cases may still exist, please use it -sparringly. +sparingly. B The C type constraint does a complex package existence check. This means that your class B be loaded for @@ -886,8 +886,8 @@ The resulting constraint will be a subtype of C and will match any of the items in C<@values>. It is case sensitive. See the L for a simple example. -B This is not a true proper enum type, it is simple -a convient constraint builder. +B This is not a true proper enum type, it is simply +a convenient constraint builder. =item B @@ -926,7 +926,7 @@ exception thrown. This can be used to define a "hand optimized" version of your type constraint which can be used to avoid traversing a subtype -constraint heirarchy. +constraint hierarchy. B You should only use this if you know what you are doing, all the built in types use this, so your subtypes (assuming they @@ -967,9 +967,9 @@ This is just sugar for the type coercion construction syntax. Given a string that is expected to match a type constraint, will normalize the string so that extra whitespace and newlines are removed. -=item B +=item B -Given string with C<$pipe_seperated_types> or a list of C<@type_constraint_names>, +Given string with C<$pipe_separated_types> or a list of C<@type_constraint_names>, this will return a L instance. =item B