1Class::MOP::Method::WraUpspeerd(C3o)ntributed Perl DocumCelnatsast:i:oMnOP::Method::Wrapped(3)
2
3
4

NAME

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

VERSION

10       version 2.2206
11

DESCRIPTION

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

METHODS

17   Class::MOP::Method::Wrapped->wrap($metamethod, %options)
18       This is the constructor. It accepts a Class::MOP::Method object and a
19       hash of options.
20
21       The options are:
22
23       •   name
24
25           The method name (without a package name). This will be taken from
26           the provided Class::MOP::Method object if it is not provided.
27
28       •   package_name
29
30           The package name for the method. This will be taken from the
31           provided Class::MOP::Method object if it is not provided.
32
33       •   associated_metaclass
34
35           An optional Class::MOP::Class object. This is the metaclass for the
36           method's class.
37
38   $metamethod->get_original_method
39       This returns the Class::MOP::Method object that was passed to the
40       constructor.
41
42   $metamethod->add_before_modifier($code)
43   $metamethod->add_after_modifier($code)
44   $metamethod->add_around_modifier($code)
45       These methods all take a subroutine reference and apply it as a
46       modifier to the original method.
47
48   $metamethod->before_modifiers
49   $metamethod->after_modifiers
50   $metamethod->around_modifiers
51       These methods all return a list of subroutine references which are
52       acting as the specified type of modifier.
53

AUTHORS

55       •   Stevan Little <stevan@cpan.org>
56
57       •   Dave Rolsky <autarch@urth.org>
58
59       •   Jesse Luehrs <doy@cpan.org>
60
61       •   Shawn M Moore <sartak@cpan.org>
62
63       •   יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>
64
65       •   Karen Etheridge <ether@cpan.org>
66
67       •   Florian Ragwitz <rafl@debian.org>
68
69       •   Hans Dieter Pearcey <hdp@cpan.org>
70
71       •   Chris Prather <chris@prather.org>
72
73       •   Matt S Trout <mstrout@cpan.org>
74
76       This software is copyright (c) 2006 by Infinity Interactive, Inc.
77
78       This is free software; you can redistribute it and/or modify it under
79       the same terms as the Perl 5 programming language system itself.
80
81
82
83perl v5.38.0                      2023-07-23    Class::MOP::Method::Wrapped(3)
Impressum