bump version to 0.65
[gitmo/Moose.git] / lib / Moose / Meta / TypeConstraint / Parameterized.pm
index 3d7cbae..ec363ab 100644 (file)
@@ -6,8 +6,9 @@ use metaclass;
 
 use Scalar::Util 'blessed';
 use Moose::Util::TypeConstraints;
+use Moose::Meta::TypeConstraint::Parameterizable;
 
-our $VERSION   = '0.57';
+our $VERSION   = '0.65';
 $VERSION = eval $VERSION;
 our $AUTHORITY = 'cpan:STEVAN';
 
@@ -56,6 +57,11 @@ sub compile_type_constraint {
           . $self->parent->name . " doesn't subtype or coerce from a parameterizable type.");
 }
 
+sub create_child_type {
+    my ($self, %opts) = @_;
+    return Moose::Meta::TypeConstraint::Parameterizable->new(%opts, parent=>$self);
+}
+
 1;
 
 __END__
@@ -81,6 +87,8 @@ Moose::Meta::TypeConstraint::Parameterized - Higher Order type constraints for M
 
 =item B<equals>
 
+=item B<create_child_type>
+
 =back
 
 =head1 BUGS