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



NAME

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


DESCRIPTION

This is a the Class::MOP::Method manpage 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 the Class::MOP::Class manpage.

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.

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