Add _get_local_methods method that returns method objects directly.
[gitmo/Class-MOP.git] / lib / Class / MOP / Class.pm
index d383e20..b1678a9 100644 (file)
@@ -944,8 +944,7 @@ sub get_all_methods {
     for my $class ( reverse $self->linearized_isa ) {
         my $meta = Class::MOP::Class->initialize($class);
 
-        $methods{$_} = $meta->get_method($_)
-            for $meta->get_method_list;
+        $methods{ $_->name } = $_ for $meta->_get_local_methods;
     }
 
     return values %methods;