The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Class::MOP::Method::Wrapped - Method Meta Object to handle before/around/after modifiers

DESCRIPTION

This is a Class::MOP::Method subclass which provides the funtionality to wrap a given CODE reference with before, after and around method modifiers.

METHODS

Construction

wrap ($code)

This is the constructor, it will return a Class::MOP::Method::Wrapped instance that can be used to add before, after and around modifiers to.

get_original_method

This returns the original CODE reference that was provided to the constructor.

Modifiers

These three methods will add the method modifiers to the wrapped CODE reference. For more information on how method modifiers work, see the section in Class::MOP::Class.

add_before_modifier ($code)
add_after_modifier ($code)
add_around_modifier ($code)

AUTHORS

Stevan Little <stevan@iinteractive.com>

COPYRIGHT AND LICENSE

Copyright 2006-2008 by Infinity Interactive, Inc.

http://www.iinteractive.com

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.