From: Shawn M Moore Date: Sat, 30 May 2009 19:19:05 +0000 (-0400) Subject: Use blessed not ref X-Git-Tag: 0.80~48 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c9d7e3969b1695246e82f8d4260222216d2aa722;p=gitmo%2FMoose.git Use blessed not ref --- 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, );