line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Flux::Out::Role::Easy; |
2
|
|
|
|
|
|
|
{ |
3
|
|
|
|
|
|
|
$Flux::Out::Role::Easy::VERSION = '1.03'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: simplified version of Flux::Out role |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
|
2639
|
use Moo::Role; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
20
|
|
10
|
|
|
|
|
|
|
with 'Flux::Out'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub write_chunk { |
13
|
3
|
|
|
3
|
0
|
186
|
my $self = shift; |
14
|
3
|
|
|
|
|
6
|
my ($chunk, @extra) = @_; |
15
|
|
|
|
|
|
|
|
16
|
3
|
50
|
|
|
|
12
|
die "write_chunk method expects arrayref, you specified: '$chunk'" unless ref($chunk) eq 'ARRAY'; # can chunks be blessed into something? |
17
|
3
|
|
|
|
|
7
|
for my $item (@$chunk) { |
18
|
11
|
|
|
|
|
28
|
$self->write($item, @extra); |
19
|
|
|
|
|
|
|
} |
20
|
3
|
|
|
|
|
9
|
return; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
6
|
|
|
6
|
0
|
25
|
sub commit { |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__END__ |