X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FTypeConstraint%2FRole.pm;h=4730810f0c8e432814ad36e219f0e4891f8cbe3b;hb=aead17e74252e3884f9f8e39912ca98fdf4b4dd5;hp=a9d96071348d1fd014068d041c9423407eb4c262;hpb=f5bc97e5bbde4f29f52d85ac7c03251665dfd52b;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/TypeConstraint/Role.pm b/lib/Moose/Meta/TypeConstraint/Role.pm index a9d9607..4730810 100644 --- a/lib/Moose/Meta/TypeConstraint/Role.pm +++ b/lib/Moose/Meta/TypeConstraint/Role.pm @@ -7,7 +7,7 @@ use metaclass; use Scalar::Util 'blessed'; use Moose::Util::TypeConstraints (); -our $VERSION = '0.60'; +our $VERSION = '0.62'; $VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; @@ -95,6 +95,11 @@ sub is_subtype_of { } } +sub create_child_type { + my ($self, @args) = @_; + return Moose::Meta::TypeConstraint->new(@args, parent => $self); +} + 1; __END__ @@ -123,6 +128,8 @@ Moose::Meta::TypeConstraint::Role - Role/TypeConstraint parallel hierarchy =item B +=item B + =item B Return all the parent types, corresponding to the parent classes.