bump version to 0.66
[gitmo/Moose.git] / lib / Moose / Meta / TypeConstraint / Parameterized.pm
index ce4ecd2..67d02e5 100644 (file)
@@ -6,8 +6,9 @@ use metaclass;
 
 use Scalar::Util 'blessed';
 use Moose::Util::TypeConstraints;
+use Moose::Meta::TypeConstraint::Parameterizable;
 
-our $VERSION   = '0.59';
+our $VERSION   = '0.66';
 $VERSION = eval $VERSION;
 our $AUTHORITY = 'cpan:STEVAN';
 
@@ -56,15 +57,9 @@ sub compile_type_constraint {
           . $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);
-    
-    return $self->SUPER::create_subtype(
-        %opts,
-        type_parameter=>$self->type_parameter,
-    );
+    return Moose::Meta::TypeConstraint::Parameterizable->new(%opts, parent=>$self);
 }
 
 1;
@@ -92,7 +87,7 @@ Moose::Meta::TypeConstraint::Parameterized - Higher Order type constraints for M
 
 =item B<equals>
 
-=item B<create_childtype>
+=item B<create_child_type>
 
 =back
 
@@ -108,7 +103,7 @@ Stevan Little E<lt>stevan@iinteractive.comE<gt>
 
 =head1 COPYRIGHT AND LICENSE
 
-Copyright 2006-2008 by Infinity Interactive, Inc.
+Copyright 2006-2009 by Infinity Interactive, Inc.
 
 L<http://www.iinteractive.com>