X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FRole.pm;h=19c2a4e814ec04ea965abbfaee992073de84f242;hb=c9d7e3969b1695246e82f8d4260222216d2aa722;hp=9f97f503129595e9911f60b8aabe3f4b64103553;hpb=16d721b3957c6f98f23201963a309d50efd1a87c;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Role.pm b/lib/Moose/Meta/Role.pm index 9f97f50..19c2a4e 100644 --- a/lib/Moose/Meta/Role.pm +++ b/lib/Moose/Meta/Role.pm @@ -154,7 +154,7 @@ sub add_required_methods { for (@_) { my $method = $_; - if (!ref($method)) { + if (!blessed($method)) { $method = $self->required_method_metaclass->new( name => $method, );