perldoc > Moose::Meta::Class

📛 NAME

Moose::Meta::Class — The Moose metaclass

🚀 Quick Reference

Use CaseCommandDescription
Create a class with rolesMoose::Meta::Class->create('New::Class', roles => ['Role1'])Create a class and apply specified roles
Create an anonymous classMoose::Meta::Class->create_anon_class(superclasses => ['Foo'], roles => ['Bar'], cache => 1)Create an anonymous class with caching based on superclasses and roles
Add override method modifier$metaclass->add_override_method_modifier('name', sub { ... })Add an override method modifier to the package
Add augment method modifier$metaclass->add_augment_method_modifier('name', sub { ... })Add an augment method modifier to the package
Add a role to the class's list$metaclass->add_role($role_meta_object)Add a role to the class's list (does not apply)
Check role composition$metaclass->does_role('RoleName')Check if class or any parent does the specified role
Change superclasses$metaclass->superclasses('ParentClass')Set or get superclasses with optional version requirements

📦 VERSION

version 2.2200

📝 DESCRIPTION

This class is a subclass of Class::MOP::Class that provides additional Moose-specific functionality.

To really understand this class, you will need to start with the Class::MOP::Class documentation. This class can be understood as a set of additional features on top of the basic feature provided by that parent class.

🧬 INHERITANCE

Moose::Meta::Class is a subclass of Class::MOP::Class.

⚙️ METHODS

🐛 BUGS

See "BUGS" in Moose for details on reporting bugs.

👥 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.

Moose::Meta::Class
📛 NAME 🚀 Quick Reference 📦 VERSION 📝 DESCRIPTION 🧬 INHERITANCE ⚙️ METHODS 🐛 BUGS 👥 AUTHORS 📄 COPYRIGHT AND LICENSE

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-27 02:24 @216.73.216.138
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format

^_top_^