| 1 | package App::PRT::Collector::Files; | ||||||||||
| 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 | 7 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 6 | 7 | my ($class, @files) = @_; | |||||||||
| 7 | |||||||||||
| 8 | 7 | bless { | |||||||||
| 9 | files => [@files], | ||||||||||
| 10 | }, $class; | ||||||||||
| 11 | } | ||||||||||
| 12 | |||||||||||
| 13 | 6 | ▶ | sub collect { | ||||||||
|
Subroutine
collect: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||
| 14 | 6 | my ($self) = @_; | |||||||||
| 15 | |||||||||||
| 16 | 6 | for my $file (@{$self->{files}}) { | |||||||||
| 17 | 11 | ▶ | die "$file does not exist" unless -f $file; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 5 | $self->{files}; | |||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | 3 | 1; | |||||||||