| 1 | package Data::Record::Serialize::Sink::array; | ||
| 2 | |||
| 3 | # ABSTRACT: append encoded data to an array. | ||
| 4 | |||
| 5 | 4 | ▶ | use v5.12; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 4 | ▶ | use Moo::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 4 | ▶ | use Data::Record::Serialize::Error { errors => ['::create'] }, -all; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 4 | our $VERSION = '2.05'; | |
| 11 | |||
| 12 | 4 | ▶ | use IO::File; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | 4 | ▶ | use namespace::clean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | |||
| 16 | ## no critic( Subroutines::ProhibitBuiltinHomonyms ) | ||
| 17 | ## no critic( NamingConventions::ProhibitAmbiguousNames ) | ||
| 18 | |||
| 19 | |||
| 20 | |||
| 21 | |||
| 22 | |||
| 23 | |||
| 24 | |||
| 25 | |||
| 26 | |||
| 27 | |||
| 28 | |||
| 29 | has output => ( | ||
| 30 | is => 'ro', | ||
| 31 | clearer => 1, | ||
| 32 | 0 | ▶ | default => sub { [] }, |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 33 | 4 | ); | |
| 34 | |||
| 35 | |||
| 36 | |||
| 37 | |||
| 38 | |||
| 39 | |||
| 40 | |||
| 41 | |||
| 42 | 26 | ▶ | sub print { push @{ shift->{output} }, @_ } |
|
Subroutine
print: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 43 | sub say; | ||
| 44 | 4 | *say = \&print; | |
| 45 | |||
| 46 | 25 | ▶ | sub close { } |
|
Subroutine
close: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 47 | |||
| 48 | 4 | with 'Data::Record::Serialize::Role::Sink'; | |
| 49 | |||
| 50 | 4 | 1; | |
| 51 | |||
| 52 | # | ||
| 53 | # This file is part of Data-Record-Serialize | ||
| 54 | # | ||
| 55 | # This software is Copyright (c) 2017 by Smithsonian Astrophysical Observatory. | ||
| 56 | # | ||
| 57 | # This is free software, licensed under: | ||
| 58 | # | ||
| 59 | # The GNU General Public License, Version 3, June 2007 | ||
| 60 | # | ||
| 61 | |||
| 62 | __END__ | ||