| 1 | package ExtUtils::Builder::Action; | ||||||||||
| 2 | 21 | $ExtUtils::Builder::Action::VERSION = '0.020'; | |||||||||
| 3 | 21 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 21 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 57 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 7 | 57 | my ($class, %args) = @_; | |||||||||
| 8 | 57 | return bless { %args }, $class; | |||||||||
| 9 | } | ||||||||||
| 10 | |||||||||||
| 11 | 10 | ▶ | sub preference { | ||||||||
|
Subroutine
preference: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 12 | 10 | my ($self, @possibilities) = @_; | |||||||||
| 13 | 10 | my $map = $self->_preference_map; | |||||||||
| 14 | 10 | ▶ | my @keys = @possibilities ? @possibilities : keys %{$map}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 10 | my ($ret) = reverse sort { $map->{$a} <=> $map->{$b} } @keys; | |||||||||
| 16 | 10 | return $ret; | |||||||||
| 17 | } | ||||||||||
| 18 | |||||||||||
| 19 | 0 | ▶ | sub to_code_hash { | ||||||||
|
Subroutine
to_code_hash: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 20 | 0 | my ($self, %opts) = @_; | |||||||||
| 21 | return { | ||||||||||
| 22 | 0 | code => $self->to_code(%opts), | |||||||||
| 23 | } | ||||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 21 | 1; | |||||||||
| 27 | |||||||||||
| 28 | #ABSTRACT: The ExtUtils::Builder Action role | ||||||||||
| 29 | |||||||||||
| 30 | __END__ | ||||||||||