[Moose-commits] r7228 - in Moose/trunk: . lib lib/Moose/Meta

gphat at code2.0beta.co.uk gphat at code2.0beta.co.uk
Sat Jan 3 06:15:24 GMT 2009


Author: gphat
Date: 2009-01-02 22:15:23 -0800 (Fri, 02 Jan 2009)
New Revision: 7228

Modified:
   Moose/trunk/Changes
   Moose/trunk/lib/Moose.pm
   Moose/trunk/lib/Moose/Meta/TypeConstraint.pm
Log:
Meta::TypeConstraint: Add some explanation for a few explanationless methods


Modified: Moose/trunk/Changes
===================================================================
--- Moose/trunk/Changes	2009-01-03 05:28:26 UTC (rev 7227)
+++ Moose/trunk/Changes	2009-01-03 06:15:23 UTC (rev 7228)
@@ -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)

Modified: Moose/trunk/lib/Moose/Meta/TypeConstraint.pm
===================================================================
--- Moose/trunk/lib/Moose/Meta/TypeConstraint.pm	2009-01-03 05:28:26 UTC (rev 7227)
+++ Moose/trunk/lib/Moose/Meta/TypeConstraint.pm	2009-01-03 06:15:23 UTC (rev 7228)
@@ -344,7 +344,7 @@
 
 =item B<parent>
 
-This type's parent  type.
+This type's parent type.
 
 =item B<has_parent>
 
@@ -352,18 +352,33 @@
 
 =item B<parents>
 
+Synonym for C<parent>.
+
 =item B<constraint>
 
+Returns this type's constraint.  This is the value of C<where> provided
+when defining a type.
+
 =item B<has_message>
 
+Returns true if this type has a message.
+
 =item B<message>
 
+Returns this type's message.
+
 =item B<get_message ($value)>
 
+Generate message for $value.
+
 =item B<has_coercion>
 
+Returns true if this type has a coercion.
+
 =item B<coercion>
 
+Returns this type's L<Moose::Meta::TypeCoercion> if one exists.
+
 =item B<hand_optimized_type_constraint>
 
 =item B<has_hand_optimized_type_constraint>

Modified: Moose/trunk/lib/Moose.pm
===================================================================
--- Moose/trunk/lib/Moose.pm	2009-01-03 05:28:26 UTC (rev 7227)
+++ Moose/trunk/lib/Moose.pm	2009-01-03 06:15:23 UTC (rev 7228)
@@ -1116,6 +1116,8 @@
 
 Sam (mugwump) Vilain
 
+Cory (gphat) Watson
+
 ... and many other #moose folks
 
 =head1 COPYRIGHT AND LICENSE




More information about the Moose-commits mailing list