make github the primary repository
[gitmo/Moose.git] / lib / Moose / Meta / TypeConstraint.pm
index e135a38..206a0a6 100644 (file)
@@ -97,7 +97,7 @@ __PACKAGE__->meta->add_attribute('inline_environment' => (
 ));
 
 sub parents {
-    my $self;
+    my $self = shift;
     $self->parent;
 }
 
@@ -289,7 +289,7 @@ sub is_subtype_of {
     my $current = $self;
 
     while (my $parent = $current->parent) {
-        return 1 if $parent->is_a_type_of($type);
+        return 1 if $parent->equals($type);
         $current = $parent;
     }
 
@@ -566,8 +566,7 @@ Returns true if the type has a parent type.
 
 =item B<< $constraint->parents >>
 
-A synonym for C<parent>. This is useful for polymorphism with types
-that can have more than one parent.
+Returns all of the types parents as an list of type constraint objects.
 
 =item B<< $constraint->constraint >>