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.
These three methods each returna list of method modifiers in the order in which they are run.
- before_modifiers
- after_modifiers
- around_modifiers
AUTHORS
Stevan Little <stevan@iinteractive.com>
COPYRIGHT AND LICENSE
Copyright 2006-2008 by Infinity Interactive, Inc.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.