| 1 | # | ||||||||||
| 2 | # $Id: Output.pm,v fe275517c71d 2023/03/10 05:42:59 gomor $ | ||||||||||
| 3 | # | ||||||||||
| 4 | package OPP::Output; | ||||||||||
| 5 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | our $VERSION = '1.00'; | |||||||||
| 9 | |||||||||||
| 10 | 1 | ▶ | use base qw(OPP); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | 1 | our @AS = qw( | |||||||||
| 13 | docs | ||||||||||
| 14 | ); | ||||||||||
| 15 | 1 | __PACKAGE__->cgBuildIndices; | |||||||||
| 16 | 1 | __PACKAGE__->cgBuildAccessorsScalar(\@AS); | |||||||||
| 17 | |||||||||||
| 18 | sub init { | ||||||||||
| 19 | 0 | ▶ | my $self = shift; | ||||||||
|
Subroutine
init: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 20 | |||||||||||
| 21 | 0 | $self->docs([]); | |||||||||
| 22 | |||||||||||
| 23 | 0 | return $self; | |||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | sub add { | ||||||||||
| 27 | 0 | ▶ | my $self = shift; | ||||||||
|
Subroutine
add: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 28 | 0 | my ($doc) = @_; | |||||||||
| 29 | |||||||||||
| 30 | 0 | ▶ | $doc = ref($doc) eq 'ARRAY' ? $doc : [ $doc ]; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 31 | |||||||||||
| 32 | 0 | return push @{$self->docs}, @$doc; | |||||||||
| 33 | } | ||||||||||
| 34 | |||||||||||
| 35 | sub flush { | ||||||||||
| 36 | 0 | ▶ | my $self = shift; | ||||||||
|
Subroutine
flush: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 37 | |||||||||||
| 38 | 0 | return $self->docs([]); | |||||||||
| 39 | } | ||||||||||
| 40 | |||||||||||
| 41 | 1 | 1; | |||||||||
| 42 | |||||||||||
| 43 | __END__ | ||||||||||