| 1 | package Flux::Out::Role::Easy; | ||||||||||
| 2 | { | ||||||||||
| 3 | 2 | $Flux::Out::Role::Easy::VERSION = '1.03'; | |||||||||
| 4 | } | ||||||||||
| 5 | |||||||||||
| 6 | # ABSTRACT: simplified version of Flux::Out role | ||||||||||
| 7 | |||||||||||
| 8 | |||||||||||
| 9 | 2 | ▶ | use Moo::Role; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 2 | with 'Flux::Out'; | |||||||||
| 11 | |||||||||||
| 12 | 3 | ▶ | sub write_chunk { | ||||||||
|
Subroutine
write_chunk: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||
| 13 | 3 | my $self = shift; | |||||||||
| 14 | 3 | my ($chunk, @extra) = @_; | |||||||||
| 15 | |||||||||||
| 16 | 3 | ▶ | die "write_chunk method expects arrayref, you specified: '$chunk'" unless ref($chunk) eq 'ARRAY'; # can chunks be blessed into something? | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | 3 | for my $item (@$chunk) { | |||||||||
| 18 | 11 | $self->write($item, @extra); | |||||||||
| 19 | } | ||||||||||
| 20 | 3 | return; | |||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | 6 | ▶ | sub commit { | ||||||||
|
Subroutine
commit: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | |||||||||||
| 27 | 2 | 1; | |||||||||
| 28 | |||||||||||
| 29 | __END__ | ||||||||||