| 1 | 3 | ▶ | use 5.006; # our |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | package MetaPOD::Result; | ||
| 6 | |||
| 7 | 3 | our $VERSION = 'v0.4.0'; | |
| 8 | |||
| 9 | # ABSTRACT: Compiled aggregate result object for MetaPOD | ||
| 10 | |||
| 11 | 3 | our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY | |
| 12 | |||
| 13 | |||
| 14 | |||
| 15 | |||
| 16 | |||
| 17 | |||
| 18 | |||
| 19 | |||
| 20 | |||
| 21 | |||
| 22 | |||
| 23 | |||
| 24 | |||
| 25 | 3 | ▶ | use Moo qw( has ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 26 | 3 | ▶ | use List::AllUtils qw( uniq ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 27 | |||
| 28 | |||
| 29 | |||
| 30 | |||
| 31 | |||
| 32 | |||
| 33 | |||
| 34 | has namespace => ( | ||
| 35 | is => ro =>, | ||
| 36 | required => 0, | ||
| 37 | lazy => 1, | ||
| 38 | 0 | ▶ | builder => sub { undef }, |
|
Subroutine
_build_namespace: not called CC=1 SCAR=6.9
| |||
| 39 | 3 | writer => set_namespace =>, | |
| 40 | reader => namespace =>, | ||
| 41 | ); | ||
| 42 | |||
| 43 | has inherits => ( | ||
| 44 | is => ro =>, | ||
| 45 | required => 0, | ||
| 46 | lazy => 1, | ||
| 47 | 0 | ▶ | builder => sub { [] }, |
|
Subroutine
_build_inherits: not called CC=1 SCAR=6.9
| |||
| 48 | 3 | writer => _set_inherits =>, | |
| 49 | reader => _inherits =>, | ||
| 50 | ); | ||
| 51 | |||
| 52 | has does => ( | ||
| 53 | is => ro =>, | ||
| 54 | required => 0, | ||
| 55 | lazy => 1, | ||
| 56 | 0 | ▶ | builder => sub { [] }, |
|
Subroutine
_build_does: not called CC=1 SCAR=6.9
| |||
| 57 | 3 | writer => _set_does =>, | |
| 58 | reader => _does =>, | ||
| 59 | ); | ||
| 60 | |||
| 61 | has interface => ( | ||
| 62 | is => ro =>, | ||
| 63 | required => 0, | ||
| 64 | lazy => 1, | ||
| 65 | 0 | ▶ | builder => sub { [] }, |
|
Subroutine
_build_interface: not called CC=1 SCAR=6.9
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 66 | 3 | writer => _set_interface =>, | |
| 67 | reader => _interface =>, | ||
| 68 | ); | ||
| 69 | |||
| 70 | |||
| 71 | |||
| 72 | |||
| 73 | |||
| 74 | |||
| 75 | |||
| 76 | 2 | ▶ | sub inherits { |
|
Subroutine
inherits: called CC=1 SCAR=0.0
Pod
documented
| |||
| 77 | 2 | my $self = shift; | |
| 78 | 2 | return @{ $self->_inherits }; | |
| 79 | } | ||
| 80 | |||
| 81 | |||
| 82 | |||
| 83 | |||
| 84 | |||
| 85 | |||
| 86 | |||
| 87 | 1 | ▶ | sub set_inherits { |
|
Subroutine
set_inherits: called CC=1 SCAR=0.0
Pod
documented
| |||
| 88 | 1 | my ( $self, @inherits ) = @_; | |
| 89 | 1 | $self->_set_inherits( [ uniq @inherits ] ); | |
| 90 | 1 | return $self; | |
| 91 | } | ||
| 92 | |||
| 93 | |||
| 94 | |||
| 95 | |||
| 96 | |||
| 97 | |||
| 98 | |||
| 99 | 1 | ▶ | sub add_inherits { |
|
Subroutine
add_inherits: called CC=1 SCAR=0.0
Pod
documented
| |||
| 100 | 1 | my ( $self, @items ) = @_; | |
| 101 | 1 | $self->_set_inherits( [ uniq @{ $self->_inherits }, @items ] ); | |
| 102 | 1 | return $self; | |
| 103 | } | ||
| 104 | |||
| 105 | |||
| 106 | |||
| 107 | |||
| 108 | |||
| 109 | |||
| 110 | |||
| 111 | 0 | ▶ | sub does { |
|
Subroutine
does: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 112 | 0 | my $self = shift; | |
| 113 | 0 | return @{ $self->_does }; | |
| 114 | } | ||
| 115 | |||
| 116 | |||
| 117 | |||
| 118 | |||
| 119 | |||
| 120 | |||
| 121 | |||
| 122 | 0 | ▶ | sub set_does { |
|
Subroutine
set_does: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 123 | 0 | my ( $self, @does ) = @_; | |
| 124 | 0 | $self->_set_does( [ uniq @does ] ); | |
| 125 | 0 | return $self; | |
| 126 | } | ||
| 127 | |||
| 128 | |||
| 129 | |||
| 130 | |||
| 131 | |||
| 132 | |||
| 133 | |||
| 134 | 0 | ▶ | sub add_does { |
|
Subroutine
add_does: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 135 | 0 | my ( $self, @items ) = @_; | |
| 136 | 0 | $self->_set_does( [ uniq @{ $self->_does }, @items ] ); | |
| 137 | 0 | return $self; | |
| 138 | } | ||
| 139 | |||
| 140 | |||
| 141 | |||
| 142 | |||
| 143 | |||
| 144 | |||
| 145 | |||
| 146 | 0 | ▶ | sub interface { |
|
Subroutine
interface: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 147 | 0 | my $self = shift; | |
| 148 | 0 | return @{ $self->_interface }; | |
| 149 | } | ||
| 150 | |||
| 151 | |||
| 152 | |||
| 153 | |||
| 154 | |||
| 155 | |||
| 156 | |||
| 157 | 0 | ▶ | sub set_interface { |
|
Subroutine
set_interface: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 158 | 0 | my ( $self, @interfaces ) = @_; | |
| 159 | 0 | $self->_set_interface( [ uniq @interfaces ] ); | |
| 160 | 0 | return $self; | |
| 161 | } | ||
| 162 | |||
| 163 | |||
| 164 | |||
| 165 | |||
| 166 | |||
| 167 | |||
| 168 | |||
| 169 | 0 | ▶ | sub add_interface { |
|
Subroutine
add_interface: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 170 | 0 | my ( $self, @items ) = @_; | |
| 171 | 0 | $self->_set_interface( [ uniq @{ $self->_interface }, @items ] ); | |
| 172 | 0 | return $self; | |
| 173 | } | ||
| 174 | |||
| 175 | 3 | 1; | |
| 176 | |||
| 177 | __END__ | ||