projects
/
gitmo/Mouse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
add_method() stores code references instead of a true value
[gitmo/Mouse.git]
/
lib
/
Mouse
/
Meta
/
Module.pm
diff --git
a/lib/Mouse/Meta/Module.pm
b/lib/Mouse/Meta/Module.pm
index
f0a6711
..
a4ddb38
100755
(executable)
--- a/
lib/Mouse/Meta/Module.pm
+++ b/
lib/Mouse/Meta/Module.pm
@@
-87,7
+87,7
@@
sub add_method {
$code = \&{$code}; # coerce
}
- $self->{methods}->{$name}++; # Moose stores meta object here.
+ $self->{methods}->{$name} = $code; # Moose stores meta object here.
my $pkg = $self->name;
no strict 'refs';