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

DESCRIPTION

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

METHODS

14   Construction
15       Class::MOP::Method::Wrapped->wrap($metamethod, %options)
16           This is the constructor. It accepts a Class::MOP::Method object and
17           a hash of options.
18
19           The options are:
20
21           ·       name
22
23                   The method name (without a package name). This will be
24                   taken from the provided Class::MOP::Method object if it is
25                   not provided.
26
27           ·       package_name
28
29                   The package name for the method. This will be taken from
30                   the provided Class::MOP::Method object if it is not
31                   provided.
32
33           ·       associated_metaclass
34
35                   An optional Class::MOP::Class object. This is the metaclass
36                   for the 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@iinteractive.com>
56
58       Copyright 2006-2010 by Infinity Interactive, Inc.
59
60       <http://www.iinteractive.com>
61
62       This library is free software; you can redistribute it and/or modify it
63       under the same terms as Perl itself.
64
65
66
67perl v5.12.2                      2010-09-13    Class::MOP::Method::Wrapped(3)
Impressum