add the C<parents> method to TypeConstraint, which is just an alias to C<parent>...
Yuval Kogman [Sat, 12 Apr 2008 15:00:56 +0000 (15:00 +0000)]
lib/Moose/Meta/TypeConstraint.pm

index 10fddf7..a10fffc 100644 (file)
@@ -39,6 +39,11 @@ __PACKAGE__->meta->add_attribute('hand_optimized_type_constraint' => (
     predicate => 'has_hand_optimized_type_constraint',
 ));
 
+sub parents {
+    my $self;
+    $self->parent;
+}
+
 # private accessors
 
 __PACKAGE__->meta->add_attribute('compiled_type_constraint' => (