return @parents;
}
-sub create_childtype {
+sub create_child_type {
my ($self, %opts) = @_;
my $class = ref $self;
return $class->new(%opts, parent => $self);
=item B<has_hand_optimized_type_constraint>
-=item B<create_childtype>
+=item B<create_child_type>
=back
. $self->parent->name . " doesn't subtype or coerce from a parameterizable type.");
}
-sub create_childtype {
+sub create_child_type {
my ($self, %opts) = @_;
return Moose::Meta::TypeConstraint->new(%opts, parent => $self);
}
=item B<equals>
-=item B<create_childtype>
+=item B<create_child_type>
=back
return 0;
}
-sub create_childtype {
+sub create_child_type {
my ($self, %opts) = @_;
my $class = ref $self;
my $constraint = Moose::Meta::TypeConstraint->new(%opts, parent => $self);
=item B<has_hand_optimized_type_constraint>
-=item B<create_childtype>
+=item B<create_child_type>
=back
) {
## creating the child is a job we delegate to the parent, since each
## parent may have local customization needs to influence it's child.
- $constraint = $parent->create_childtype(%opts);
+ $constraint = $parent->create_child_type(%opts);
} else {
## If for some reason the above couldn't create a type constraint, let's
## make sure to create something.