X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FClass.pm;h=6a45f48d33ad535f3031728bec6db256e796d05e;hb=560c498d90d36bb5e56c077d496f395f817698b9;hp=856538b379d732a67b80f1bd6c35ebbbf061d210;hpb=92056b59b8c2cc4271e7b050bba180411285802e;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Class.pm b/lib/Moose/Meta/Class.pm index 856538b..6a45f48 100644 --- a/lib/Moose/Meta/Class.pm +++ b/lib/Moose/Meta/Class.pm @@ -743,10 +743,11 @@ adds it to the class's list of role applications. This I actually apply any role to the class; it is only for tracking role applications. -=item B<< $metaclass->does_role($role_name) >> +=item B<< $metaclass->does_role($role) >> -This returns a boolean indicating whether or not the class does the -specified role. This tests both the class and its parents. +This returns a boolean indicating whether or not the class does the specified +role. The role provided can be either a role name or a L +object. This tests both the class and its parents. =item B<< $metaclass->excludes_role($role_name) >>