minor doc tweaks
John Napiorkowski [Tue, 19 Aug 2008 20:57:29 +0000 (20:57 +0000)]
lib/MooseX/Meta/TypeConstraint/Structured.pm
t/constraints.t

index 51c4d78..cbe112f 100644 (file)
@@ -28,13 +28,19 @@ declare constraints like "ArrayRef[Int, Int, Str]" where the constraint is an
 ArrayRef of three elements and the internal constraint on the three is Int, Int
 and Str.
 
+To accomplish this, we add an attribute to the base L<Moose::Meta::TypeConstraint>
+to hold a L</signature>, which is a reference to a pattern of type constraints.
+We then override L</constraint> to check our incoming value to the attribute
+against this signature pattern.
+
 =head1 SUBTYPES
 
 The following subtypes and coercions are defined in this class.
 
 =head2 MooseX::Meta::TypeConstraint::Structured::Signature
 
-This is a type constraint to normalize the incoming L</signature>.
+This is a type constraint to normalize the incoming L</signature>.  We want
+everything as a HashRef in the end.
 
 =cut
 
index 1e4c36f..246f631 100644 (file)
@@ -23,7 +23,7 @@ BEGIN {
             parent => find_type_constraint('ArrayRef'),
             package_defined_in => __PACKAGE__,
             signature => [map {
-                               Moose::Util::TypeConstraints::find_or_parse_type_constraint ($_)
+                               Moose::Util::TypeConstraints::find_or_parse_type_constraint($_)
                        } @args],
         );
     }