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

---
type: CommandReference
command: Class::MOP::Method::Wrapped
mode: perldoc
section: 3pm
source: perldoc
---

## Quick Reference

- `Class::MOP::Method::Wrapped->wrap($metamethod, %options)` — wrap a method with modifier support
- `$metamethod->get_original_method` — retrieve the original `Class::MOP::Method` object
- `$metamethod->add_before_modifier($code)` — add a before modifier
- `$metamethod->add_after_modifier($code)` — add an after modifier
- `$metamethod->add_around_modifier($code)` — add an around modifier
- `$metamethod->before_modifiers` — list of before modifier subs
- `$metamethod->after_modifiers` — list of after modifier subs
- `$metamethod->around_modifiers` — list of around modifier subs

## Name

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

## Synopsis

perl
use Class::MOP::Method::Wrapped;

my $wrapped = Class::MOP::Method::Wrapped->wrap(
    $metamethod,
    name               => 'method_name',
    package_name       => 'MyPackage',
    associated_metaclass => $metaclass,
);
## Options

### `wrap($metamethod, %options)`

- `name` — method name (without package). Defaults from `$metamethod`.
- `package_name` — package name. Defaults from `$metamethod`.
- `associated_metaclass` — optional `Class::MOP::Class` object for the method's class.

### Modifier methods

- `add_before_modifier($code)` — apply a before modifier
- `add_after_modifier($code)` — apply an after modifier
- `add_around_modifier($code)` — apply an around modifier

### Accessor methods

- `get_original_method` — returns the original `Class::MOP::Method` object
- `before_modifiers` — returns list of before modifier subs
- `after_modifiers` — returns list of after modifier subs
- `around_modifiers` — returns list of around modifier subs

## Examples

No examples are provided in the original documentation.

## See Also

- [Class::MOP::Method](https://metacpan.org/pod/Class::MOP::Method)
- [Class::MOP::Method::Wrapped on CPAN](https://metacpan.org/pod/Class::MOP::Method::Wrapped)