{
    "mode": "perldoc",
    "parameter": "Class::MOP::Method::Wrapped",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Class%3A%3AMOP%3A%3AMethod%3A%3AWrapped/json",
    "generated": "2026-08-09T06:56:54Z",
    "sections": {
        "NAME": {
            "content": "Class::MOP::Method::Wrapped - Method Meta Object for methods with before/after/around modifiers\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 2.2207\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is a Class::MOP::Method subclass which implements before, after, and around method\nmodifiers.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "Class::MOP::Method::Wrapped->wrap($metamethod, %options)\nThis is the constructor. It accepts a Class::MOP::Method object and a hash of options.\n\nThe options are:\n\n*   name\n\nThe method name (without a package name). This will be taken from the provided\nClass::MOP::Method object if it is not provided.\n\n*   packagename\n\nThe package name for the method. This will be taken from the provided Class::MOP::Method\nobject if it is not provided.\n\n*   associatedmetaclass\n\nAn optional Class::MOP::Class object. This is the metaclass for the method's class.\n\n$metamethod->getoriginalmethod\nThis returns the Class::MOP::Method object that was passed to the constructor.\n\n$metamethod->addbeforemodifier($code)\n$metamethod->addaftermodifier($code)\n$metamethod->addaroundmodifier($code)\nThese methods all take a subroutine reference and apply it as a modifier to the original method.\n\n$metamethod->beforemodifiers\n$metamethod->aftermodifiers\n$metamethod->aroundmodifiers\nThese methods all return a list of subroutine references which are acting as the specified type\nof modifier.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "*   Stevan Little <stevan@cpan.org>\n\n*   Dave Rolsky <autarch@urth.org>\n\n*   Jesse Luehrs <doy@cpan.org>\n\n*   Shawn M Moore <sartak@cpan.org>\n\n*   יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>\n\n*   Karen Etheridge <ether@cpan.org>\n\n*   Florian Ragwitz <rafl@debian.org>\n\n*   Hans Dieter Pearcey <hdp@cpan.org>\n\n*   Chris Prather <chris@prather.org>\n\n*   Matt S Trout <mstrout@cpan.org>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This software is copyright (c) 2006 by Infinity Interactive, Inc.\n\nThis is free software; you can redistribute it and/or modify it under the same terms as the Perl\n5 programming language system itself.\n",
            "subsections": []
        }
    },
    "summary": "Class::MOP::Method::Wrapped - Method Meta Object for methods with before/after/around modifiers",
    "flags": [],
    "examples": [],
    "see_also": []
}