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>

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