| 1 | 3 | ▶ | use v5.36; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | |||||||||||
| 3 | package Ekorn::Pipeline::Pipes; | ||||||||||
| 4 | |||||||||||
| 5 | 3 | ▶ | use Ekorn::Pipeline qw(); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | # Run the invocant through a pipeline of stages. | ||||||||||
| 8 | 11 | ▶ | sub pipe ($self, @stages) { ## no critic (Subroutines::ProhibitBuiltinHomonyms) | ||||||||
|
Subroutine
pipe: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 9 | 11 | my $pipeline = Ekorn::Pipeline->new(@stages); | |||||||||
| 10 | 10 | my @results = $pipeline->($self); | |||||||||
| 11 | 9 | ▶ | return wantarray ? @results : $results[0]; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 12 | } | ||||||||||
| 13 | |||||||||||
| 14 | # Run the invocant through a pipeline of stages for their side effects, and | ||||||||||
| 15 | # return the invocant. | ||||||||||
| 16 | 10 | ▶ | sub tap ($self, @stages) { | ||||||||
|
Subroutine
tap: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 17 | 10 | my $pipeline = Ekorn::Pipeline->new(@stages); | |||||||||
| 18 | 9 | $pipeline->($self); | |||||||||
| 19 | 8 | return $self; | |||||||||
| 20 | } | ||||||||||
| 21 | |||||||||||
| 22 | 3 | 1; | |||||||||
| 23 | __END__ | ||||||||||