use Carp 'confess';
use Scalar::Util 'blessed';
-our $VERSION = '0.64_05';
+our $VERSION = '0.78';
$VERSION = eval $VERSION;
our $AUTHORITY = 'cpan:STEVAN';
$_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;
$_build_wrapped_method->($code->{'modifier_table'});
}
+sub after_modifiers {
+ my $code = shift;
+ return @{$code->{'modifier_table'}->{after}};
+}
+
{
# NOTE:
# this is another possible candidate for
}
}
+sub around_modifiers {
+ my $code = shift;
+ return @{$code->{'modifier_table'}->{around}->{methods}};
+}
+
1;
__END__
=back
+These three methods each returna list of method modifiers I<in the
+order in which they are run>.
+
+=over 4
+
+=item B<before_modifiers>
+
+=item B<after_modifiers>
+
+=item B<around_modifiers>
+
+=back
+
=head1 AUTHORS
Stevan Little E<lt>stevan@iinteractive.comE<gt>