info > Class::MOP::Method

๐Ÿ“› NAME

Class::MOP::Method - Method Meta Object

๐Ÿš€ Quick Reference

Use CaseCommandDescription
๐Ÿ”ง Create a method meta-objectClass::MOP::Method->wrap($code, %options)Constructor from coderef or another method object
๐Ÿ“‹ Clone a method$metamethod->clone(%params)Shallow clone sharing the same subroutine
๐Ÿ” Get the subroutine$metamethod->bodyReturns a reference to the method's subroutine
๐Ÿท๏ธ Get the method name$metamethod->nameReturns the method's name (without package)
๐Ÿ“ฆ Get the package name$metamethod->package_nameReturns the method's package name
๐Ÿ”— Get fully qualified name$metamethod->fully_qualified_nameReturns "Package::Name::method"
๐Ÿ›๏ธ Get associated metaclass$metamethod->associated_metaclassReturns the Class::MOP::Class object
๐Ÿงฌ Get original method$metamethod->original_methodReturns the method that was cloned
๐Ÿ“› Get original name$metamethod->original_nameName from the first in the clone chain
๐Ÿ“ฆ Get original package$metamethod->original_package_namePackage from the first in the clone chain
๐Ÿ”— Get original FQN$metamethod->original_fully_qualified_nameFully qualified name from the first in the clone chain
๐Ÿงช Check if stub$metamethod->is_stubReturns true if method is sub foo;
๐Ÿ”— Attach to class$metamethod->attach_to_class($metaclass)Set the associated metaclass (overwrites existing)
๐Ÿ”“ Detach from class$metamethod->detach_from_classRemove associated metaclass
โ–ถ๏ธ Execute the method$metamethod->execute(...)Execute with provided arguments
๐Ÿชž Get metaclassClass::MOP::Method->metaReturns a Class::MOP::Class instance for this class

๐Ÿ“Œ VERSION

version 2.2200

๐Ÿ“– DESCRIPTION

The Method Protocol is very small, since methods in Perl 5 are just subroutines in a specific package. We provide a very basic introspection interface.

โš™๏ธ METHODS

๐Ÿ‘ฅ AUTHORS

๐Ÿ“œ COPYRIGHT AND LICENSE

This software is copyright (c) 2006 by Infinity Interactive, Inc.

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

Class::MOP::Method
๐Ÿ“› NAME ๐Ÿš€ Quick Reference ๐Ÿ“Œ VERSION ๐Ÿ“– DESCRIPTION โš™๏ธ METHODS ๐Ÿ‘ฅ AUTHORS ๐Ÿ“œ COPYRIGHT AND LICENSE

Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-24 01:30 @216.73.216.102
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!