DOKK / manpages / debian 12 / libobject-pad-perl / Object::Pad::MOP::Method.3pm.en
Object::Pad::MOP::Method(3pm) User Contributed Perl Documentation Object::Pad::MOP::Method(3pm)

"Object::Pad::MOP::Method" - meta-object representation of a method of a "Object::Pad" class

Instances of this class represent a method of a class implemented by Object::Pad. Accessors provide information about the method.

This API should be considered experimental, and will emit warnings to that effect. They can be silenced with

   use Object::Pad qw( :experimental(mop) );

   $name = $metamethod->name

Returns the name of the method, as a plain string.

Returns the Object::Pad::MOP::Class instance representing the class of which this method is a member.

   $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.

Paul Evans <leonerd@leonerd.org.uk>

2023-01-13 perl v5.36.0