projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
d9e17f8
)
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
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Meta/TypeConstraint.pm
b/lib/Moose/Meta/TypeConstraint.pm
index
10fddf7
..
a10fffc
100644
(file)
--- 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' => (