man > Class::MOP::Method::Wrapped

Class::MOP::Method::Wrapped(3pm) User Contributed Perl Documentation

📖 NAME

Class::MOP::Method::Wrapped — Method Meta Object for methods with before/after/around modifiers

🚀 Quick Reference

Use CaseCommandDescription
🔧 Wrap a methodClass::MOP::Method::Wrapped->wrap($metamethod, %options)Wrap an existing method with modifier support
➕ Add before modifier$metamethod->add_before_modifier($code)Add a subroutine to run before the original method
➕ Add after modifier$metamethod->add_after_modifier($code)Add a subroutine to run after the original method
🔄 Add around modifier$metamethod->add_around_modifier($code)Add a subroutine that wraps the original method
📄 Get original method$metamethod->get_original_methodRetrieve the original wrapped method object
📋 List before modifiers$metamethod->before_modifiersReturn list of before modifier coderefs
📋 List after modifiers$metamethod->after_modifiersReturn list of after modifier coderefs
📋 List around modifiers$metamethod->around_modifiersReturn list of around modifier coderefs

📚 VERSION

version 2.2200

📝 DESCRIPTION

This is a Class::MOP::Method subclass which implements before, after, and around method modifiers.

⚙️ METHODS

🔧 Class::MOP::Method::Wrapped->wrap($metamethod, %options)

This is the constructor. It accepts a Class::MOP::Method object and a hash of options.

The options are:

📄 $metamethod->get_original_method

This returns the Class::MOP::Method object that was passed to the constructor.

➕ Adding Modifiers

These methods all take a subroutine reference and apply it as a modifier to the original method.

📋 Listing Modifiers

👥 AUTHORS

📄 COPYRIGHT AND LICENSE

This software is copyright (c) 2006 by Infinity Interactive, Inc.

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

Class::MOP::Method::Wrapped
📖 NAME 🚀 Quick Reference 📚 VERSION 📝 DESCRIPTION ⚙️ METHODS
🔧 Class::MOP::Method::Wrapped->wrap($metamethod, %options) 📄 $metamethod->get_original_method ➕ Adding Modifiers 📋 Listing Modifiers
👥 AUTHORS 📄 COPYRIGHT AND LICENSE

Generated by phpman v4.9.26-5-g7740029 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-12 23:47 @216.73.217.60
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!