Class::MOP::Object(3)
π NAME π
Class::MOP::Object β the base class for metaclasses, aka the blueprint-of-blueprints bestie π¦
This one lives in the User Contributed Perl Documentation section, section 3, iykyk.
β¨ VERSION β¨
version 2.4000 β yeah she's on 2.4000, periodt π
πΈ DESCRIPTION πΈ
Okay so listen. This class is a very minimal base class for metaclasses. Like, minimal minimal. She's not doing the most, she's just the vibe foundation everything else stands on. Lowkey iconic for that. π
π METHODS π
This class hands you a few methods that are useful in all metaclasses. Universal queen behaviour fr fr. π
Class::MOP::???->meta
This returns a Class::MOP::Class object. That's it, that's the whole thing. Short and slay. β¨
$metaobject->dump($max_depth)
This method uses Data::Dumper to dump the object. Like, it spills the whole thing out for you to read. π«Ά
You can pass an optional maximum depth, which will set $Data::Dumper::Maxdepth. And if you don't pass one? The default maximum depth is 1. No cap. πΈ
$metaclass->throw_error($message)
This method calls "_throw_exception" in Class::MOP::Mixin internally, with an object of class Moose::Exception::Legacy. So yeah, it's throwing hands, but politely, through the proper channels. π
π AUTHORS π
Shoutout to the whole squad who made this happen, give them their flowers: π
- Stevan Little <stevan@cpan.org>
- Dave Rolsky <autarch@urth.org>
- Jesse Luehrs <doy@cpan.org>
- Shawn M Moore <sartak@cpan.org>
- ΧΧΧΧ Χ§ΧΧ'ΧΧ (Yuval Kogman) <nothingmuch@woobling.org>
- Karen Etheridge <ether@cpan.org>
- Florian Ragwitz <rafl@debian.org>
- Hans Dieter Pearcey <hdp@cpan.org>
- Chris Prather <chris@prather.org>
- Matt S Trout <mstrout@cpan.org>
π 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. So go off, remix it, redistribute it, it's yours to play with. π
perl v5.42.0 Β· 2025-07-25 Β· Class::MOP::Object(3) β and that's the whole page bestie, thanks for reading, mwah πβ¨
π¦ where this page comes from
- fedora 43: perl-Moose 2.4000-4.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms