Use _get_local_methods instead of recreating methods over and over
Dave Rolsky [Thu, 19 Aug 2010 04:38:27 +0000 (06:38 +0200)]
lib/Moose/Meta/Attribute/Native/Trait.pm

index 64c3823..b6c6eb6 100644 (file)
@@ -28,8 +28,8 @@ has 'method_constructors' => (
         my $method_provider = $self->method_provider->meta;
         return +{
             map {
-                $_ => $method_provider->get_method($_)
-            } $method_provider->get_method_list
+                $_->name => $_
+            } $method_provider->_get_local_methods
         };
     },
 );