From: Cory G Watson Date: Sat, 3 Jan 2009 06:15:23 +0000 (+0000) Subject: Meta::TypeConstraint: Add some explanation for a few explanationless methods X-Git-Tag: 0.65~37 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2f7e40426480d260caad54cf3a3c702b39abfeb2;p=gitmo%2FMoose.git Meta::TypeConstraint: Add some explanation for a few explanationless methods --- diff --git a/Changes b/Changes index 78fc713..51b56c0 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,9 @@ Revision history for Perl extension Moose +Pending + * Moose::Meta::TypeConstraint + - Add some explanation for a few explanationless methods (gphat) + 0.64 Wed, December 31, 2008 * Moose::Meta::Method::Accessor - Always inline predicate and clearer methods (Sartak) diff --git a/lib/Moose.pm b/lib/Moose.pm index d65bc89..45ac965 100644 --- a/lib/Moose.pm +++ b/lib/Moose.pm @@ -1116,6 +1116,8 @@ Piotr (dexter) Roszatycki Sam (mugwump) Vilain +Cory (gphat) Watson + ... and many other #moose folks =head1 COPYRIGHT AND LICENSE diff --git a/lib/Moose/Meta/TypeConstraint.pm b/lib/Moose/Meta/TypeConstraint.pm index 94e5ae2..8ac3d3f 100644 --- a/lib/Moose/Meta/TypeConstraint.pm +++ b/lib/Moose/Meta/TypeConstraint.pm @@ -344,7 +344,7 @@ The name of the type in the global type registry. =item B -This type's parent type. +This type's parent type. =item B @@ -352,18 +352,33 @@ Returns true if this type has a parent type. =item B +Synonym for C. + =item B +Returns this type's constraint. This is the value of C provided +when defining a type. + =item B +Returns true if this type has a message. + =item B +Returns this type's message. + =item B +Generate message for $value. + =item B +Returns true if this type has a coercion. + =item B +Returns this type's L if one exists. + =item B =item B