add_method() stores code references instead of a true value
[gitmo/Mouse.git] / lib / Mouse / Meta / Module.pm
index f0a6711..a4ddb38 100755 (executable)
@@ -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';