# attribute). This whole create_child_type thing needs some changing
# though, probably making MMC->new a factory or something.
sub create_child_type {
- my ($self, %opts) = @_;
- return Moose::Meta::TypeConstraint->new(%opts, parent => $self);
+ my ($self, @args) = @_;
+ return Moose::Meta::TypeConstraint->new(@args, parent => $self);
}
1;
sub { defined($_[0]) && !ref($_[0]) && exists $values{$_[0]} };
}
+sub create_child_type {
+ my ($self, @args) = @_;
+ return Moose::meta::TypeConstraint->new(@args, parent => $self);
+}
+
1;
__END__
=item B<meta>
+=item B<create_child_type>
+
=back
=head1 BUGS
}
}
+sub create_child_type {
+ my ($self, @args) = @_;
+ return Moose::meta::TypeConstraint->new(@args, parent => $self);
+}
+
1;
__END__
=item B<is_subtype_of>
+=item B<create_child_type>
+
=item B<parents>
Return all the parent types, corresponding to the parent classes.