1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
# You may distribute under the terms of either the GNU General Public License
# or the Artistic License (the same terms as Perl itself)
#
# (C) Paul Evans, 2020 -- leonerd@leonerd.org.uk
package Object::Pad::MOP::Method 0.823;
use v5.18;
use warnings;
# This is an XS-implemented object type provided by Object::Pad itself
require Object::Pad;
=head1 NAME
C<Object::Pad::MOP::Method> - meta-object representation of a method of a C<Object::Pad> class
=head1 DESCRIPTION
=for highlighter language=perl
Instances of this class represent a method of a class implemented by
L<Object::Pad>. Accessors provide information about the method.
This API should be considered B<experimental>, and will emit warnings to that
effect. They can be silenced with
use Object::Pad qw( :experimental(mop) );
=cut
=head1 METHODS
=head2 name
$name = $metamethod->name;
Returns the name of the method, as a plain string.
=head2 class
$metaclass = $metamethod->class;
Returns the L<Object::Pad::MOP::Class> instance representing the class of
which this method is a member.
=head2 is_common
$bool = $metamethod->is_common;
I<Since version 0.62.>
Returns true if the method is a class-common method, or false for a regular
instance method.
=cut
=head1 AUTHOR
Paul Evans <leonerd@leonerd.org.uk>
=cut
0x55AA;
|