From: Dave Rolsky Date: Thu, 25 Jun 2009 17:34:58 +0000 (-0500) Subject: The Role type simply checks if $object->can('does') X-Git-Tag: 0.84~23^2~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=25e176ebb81dbb3a3c22b8a6382f8d04109fa13f;p=gitmo%2FMoose.git The Role type simply checks if $object->can('does') --- diff --git a/lib/Moose/Util/TypeConstraints.pm b/lib/Moose/Util/TypeConstraints.pm index 67cc472..ac3b7b1 100644 --- a/lib/Moose/Util/TypeConstraints.pm +++ b/lib/Moose/Util/TypeConstraints.pm @@ -888,7 +888,7 @@ type constraint to pass. B The C constraint checks a string is a I which is a role, like C<'MyApp::Role::Comparable'>. The C -constraint checks that an I the named role. +constraint checks that an I has a C method. =head2 Type Constraint Naming