X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FClass%2FMOP%2FMethod%2FWrapped.pm;h=883fbcd3b7c2aa67c83956f4dfbba0dca1ffc9a0;hb=b88aa2e8d394623bfccf6eb8052dba12acf1e69a;hp=c3a355d87d84b173b29f39b0221654d4033ab75c;hpb=3d2695646c17fca63e20186eeda494323b6aca02;p=gitmo%2FClass-MOP.git diff --git a/lib/Class/MOP/Method/Wrapped.pm b/lib/Class/MOP/Method/Wrapped.pm index c3a355d..883fbcd 100644 --- a/lib/Class/MOP/Method/Wrapped.pm +++ b/lib/Class/MOP/Method/Wrapped.pm @@ -108,6 +108,11 @@ sub add_before_modifier { $_build_wrapped_method->($code->{'modifier_table'}); } +sub before_modifiers { + my $code = shift; + return @{$code->{'modifier_table'}->{before}}; +} + sub add_after_modifier { my $code = shift; my $modifier = shift; @@ -115,6 +120,11 @@ sub add_after_modifier { $_build_wrapped_method->($code->{'modifier_table'}); } +sub after_modifiers { + my $code = shift; + return @{$code->{'modifier_table'}->{after}}; +} + { # NOTE: # this is another possible candidate for @@ -142,6 +152,11 @@ sub add_after_modifier { } } +sub around_modifiers { + my $code = shift; + return @{$code->{'modifier_table'}->{around}->{methods}}; +} + 1; __END__ @@ -191,6 +206,19 @@ see the section in L. =back +These three methods each returna list of method modifiers I. + +=over 4 + +=item B + +=item B + +=item B + +=back + =head1 AUTHORS Stevan Little Estevan@iinteractive.comE