Class::MOP::Method - Method Meta Object
The Method Protocol is very small, since methods in Perl 5 are just subroutines within the particular package. We provide a very basic introspection interface.
This will return a Class::MOP::Class instance which is related to this class.
This is the basic constructor, it returns a Class::MOP::Method instance which wraps the given $code reference. You can also set the package_name and name attributes using the %params. If these are not set, then thier accessors will attempt to figure it out using the Class::MOP::get_code_info function.
$code
package_name
name
%params
Class::MOP::get_code_info
This will make a copy of the object, allowing you to override any values by stuffing them in %params.
This returns the actual CODE reference of the particular instance.
This returns the name of the CODE reference.
This returns the package name that the CODE reference is attached to.
This returns the fully qualified name of the CODE reference.
Stevan Little <stevan@iinteractive.com>
Copyright 2006-2008 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.
To install Class::MOP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Class::MOP
CPAN shell
perl -MCPAN -e shell install Class::MOP
For more information on module installation, please visit the detailed CPAN module installation guide.