Class::MOP::Class::Immutable::Trait - Implements immutability for metaclass objects
| Use Case | Command | Description |
|---|---|---|
| Make a metaclass immutable | $meta->make_immutable() | Applies the immutability trait, caches methods, and prevents further class changes. |
| Check if metaclass is immutable | $meta->is_immutable | Returns true if the metaclass is immutable. |
| List cached methods | $meta->immutable_methods | Returns a list of method names that are cached when immutable. |
version 2.2200
This class provides a pseudo-trait that is applied to immutable metaclass objects. In reality, it is simply a parent class.
It implements caching and read-only-ness for various metaclass methods.
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.
perl v5.34.0 â 2022-02-06 â Class::MOP::Class::Immutable::Trait(3pm)
Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-18 19:54 @2600:1f28:365:80b0:b91e:58eb:6587:15c8
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format