| 1 | package ExtUtils::Builder::FileSet::Filter; | ||||||||||
| 2 | 7 | $ExtUtils::Builder::FileSet::Filter::VERSION = '0.020'; | |||||||||
| 3 | 7 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 7 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 7 | ▶ | use base 'ExtUtils::Builder::FileSet'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 7 | ▶ | use Carp (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 1 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=2 SCAR=7.0
Pod
undocumented
| |||||||||||
| 11 | 1 | my ($class, %args) = @_; | |||||||||
| 12 | 1 | my $self = $class->SUPER::new(%args); | |||||||||
| 13 | 1 | ▶ | $self->{condition} = $args{condition} or Carp::croak('No condition given'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | 1 | return $self; | |||||||||
| 15 | } | ||||||||||
| 16 | |||||||||||
| 17 | 5 | ▶ | sub add_input { | ||||||||
|
Subroutine
add_input: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 18 | 5 | my ($self, $source) = @_; | |||||||||
| 19 | |||||||||||
| 20 | 5 | ▶ | if ($self->{condition}->($source)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | 2 | $self->_pass_on($source); | |||||||||
| 22 | } | ||||||||||
| 23 | 5 | return $source; | |||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 7 | 1; | |||||||||