blib/lib/Object/Pad/MOP/Method.pm untested

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