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