Object...Method(3pm)
π Object...Method(3pm) β the meta-object glow-up
okay bestie, real talk: this is a page out of the User Contributed Perl Documentation, and it's about "Object::Pad::MOP::Method" β the meta-object representation of a method of a "Object::Pad" class. yes, that's a mouthful. no, we're not skipping it. π«Ά
β¨ NAME β¨
"Object::Pad::MOP::Method" β literally the meta-object representation of a method of a "Object::Pad" class. that's the whole vibe. π
πΈ DESCRIPTION πΈ
so, instances of this class represent a method of a class implemented by Object::Pad. the accessors are gonna hand you all the info about that method, no cap.
β οΈ heads up bestie: this API should be considered experimental, and it will emit warnings to that effect. like, it's telling on itself. π you can silence the warnings with:
use Object::Pad qw( :experimental(mop) );
that's it. that's the whole spell. π§
π METHODS π
name π
$name = $metamethod->name;
returns the name of the method, as a plain string. that's it, that's the whole thing. short and slay. β¨
class π¦
$metaclass = $metamethod->class;
returns the Object::Pad::MOP::Class instance representing the class of which this method is a member. like, which class does this method belong to? this tells you. main character energy, honestly. π
is_common β
$bool = $metamethod->is_common;
since version 0.62. π
returns true if the method is a class-common method, or false for a regular instance method. a simple vibe check, and it ate. π
π AUTHOR π
Paul Evans <leonerd@leonerd.org.uk> β we love and respect him fr fr. π«Ά
okay that's the whole page, bestie, you're so welcome π β this lil doc dropped as part of perl v5.42.3 on 2026-08-22, and yeah, it's still filed under Object...Method(3pm). periodt. β¨π
π¦ where this page comes from
- ubuntu stonking: libobject-pad-perl 0.825-1build1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms