The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Class::MOP::Method - Method Meta Object

SYNOPSIS

  # ... more to come later maybe

DESCRIPTION

The Method Protocol is very small, since methods in Perl 5 are just subroutines within the particular package. Basically all we do is to bless the subroutine.

Currently this package is largely unused. Future plans are to provide some very simple introspection methods for the methods themselves. Suggestions for this are welcome.

METHODS

Introspection

meta

This will return a Class::MOP::Class instance which is related to this class.

Construction

wrap (&code)

This simply blesses the &code reference passed to it.

Informational

name
package_name
fully_qualified_name

Class::MOP::Method::Wrapped METHODS

Construction

wrap (&code)

This simply blesses the &code reference passed to it.

get_original_method

Modifiers

add_before_modifier ($code)
add_after_modifier ($code)
add_around_modifier ($code)

AUTHORS

Stevan Little <stevan@iinteractive.com>

Yuval Kogman <nothingmuch@woobling.com>

COPYRIGHT AND LICENSE

Copyright 2006 by Infinity Interactive, Inc.

http://www.iinteractive.com

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