From: Yuval Kogman Date: Sat, 12 Apr 2008 15:00:56 +0000 (+0000) Subject: add the C method to TypeConstraint, which is just an alias to C... X-Git-Tag: 0_55~234 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bd72f3c88bf8fae9e98361acae65bb51691eabeb;p=gitmo%2FMoose.git add the C method to TypeConstraint, which is just an alias to C. Useful for polymorphism with TC::Class --- diff --git a/lib/Moose/Meta/TypeConstraint.pm b/lib/Moose/Meta/TypeConstraint.pm index 10fddf7..a10fffc 100644 --- a/lib/Moose/Meta/TypeConstraint.pm +++ b/lib/Moose/Meta/TypeConstraint.pm @@ -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' => (