projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
4574dd0
)
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
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Meta/Attribute/Native/Trait.pm
b/lib/Moose/Meta/Attribute/Native/Trait.pm
index
64c3823
..
b6c6eb6
100644
(file)
--- a/
lib/Moose/Meta/Attribute/Native/Trait.pm
+++ b/
lib/Moose/Meta/Attribute/Native/Trait.pm
@@
-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
};
},
);