package_name >= associated_metaclass->name
Yuval Kogman [Sun, 10 Aug 2008 18:24:02 +0000 (18:24 +0000)]
lib/Class/MOP/Class.pm

index 8630361..c5075dc 100644 (file)
@@ -800,7 +800,7 @@ sub compute_all_applicable_methods {
     return map {
         {
             name  => $_->name,
-            class => $_->associated_metaclass->name,
+            class => $_->package_name,
             code  => $_, # sigh, overloading
         },
     } values %methods;