X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FClass%2FMOP%2FClass.pm;h=24234b86bf046a40391fae4275e1cf2bd27d5560;hb=3a642c024cf3e964eedddffa171cc501bac9265d;hp=88103388fd7528733811d817a67f86eb3c4556bb;hpb=efc98200d49cae9fb74285a58d12e3b988da0a97;p=gitmo%2FClass-MOP.git diff --git a/lib/Class/MOP/Class.pm b/lib/Class/MOP/Class.pm index 8810338..24234b8 100644 --- a/lib/Class/MOP/Class.pm +++ b/lib/Class/MOP/Class.pm @@ -672,7 +672,7 @@ sub add_method { || confess "You must pass in a method name"; my $method = $fetch_and_prepare_method->($self, $method_name); $method->add_before_modifier( - subname(':before' => $method_modifier) + subname(':before-' . $method_name => $method_modifier) ); } @@ -682,7 +682,7 @@ sub add_method { || confess "You must pass in a method name"; my $method = $fetch_and_prepare_method->($self, $method_name); $method->add_after_modifier( - subname(':after' => $method_modifier) + subname(':after-' . $method_name => $method_modifier) ); } @@ -692,7 +692,7 @@ sub add_method { || confess "You must pass in a method name"; my $method = $fetch_and_prepare_method->($self, $method_name); $method->add_around_modifier( - subname(':around' => $method_modifier) + subname(':around-' . $method_name => $method_modifier) ); }