| 1 | package EO::System; | ||||||||||
| 2 | |||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 2 | ▶ | use IO::Handle; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 2 | ▶ | use EO::Singleton; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 2 | ▶ | use EO::System::OS; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 2 | ▶ | use EO::System::Perl; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 2 | ▶ | use base qw( EO::Singleton ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | 2 | our $VERSION = 0.96; | |||||||||
| 13 | |||||||||||
| 14 | 1 | ▶ | sub init { | ||||||||
|
Subroutine
init: called CC=2 SCAR=7.1
Pod
undocumented
| |||||||||||
| 15 | 1 | my $self = shift; | |||||||||
| 16 | 1 | ▶ | if ($self->SUPER::init( @_ )) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | 1 | $self->{out} = \*STDOUT; | |||||||||
| 18 | 1 | $self->{in} = \*STDIN; | |||||||||
| 19 | 1 | $self->{error} = \*STDERR; | |||||||||
| 20 | 1 | return 1; | |||||||||
| 21 | } | ||||||||||
| 22 | 0 | return 0; | |||||||||
| 23 | } | ||||||||||
| 24 | |||||||||||
| 25 | 1 | ▶ | sub out { | ||||||||
|
Subroutine
out: called CC=2 SCAR=7.9
Pod
undocumented
| |||||||||||
| 26 | 1 | my $self = shift; | |||||||||
| 27 | 1 | $self = __PACKAGE__->new(); | |||||||||
| 28 | 1 | ▶ | if (@_) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 29 | 0 | $self->{ out } = shift; | |||||||||
| 30 | 0 | return $self; | |||||||||
| 31 | } | ||||||||||
| 32 | 1 | return $self->{ out }; | |||||||||
| 33 | } | ||||||||||
| 34 | |||||||||||
| 35 | 1 | ▶ | sub in { | ||||||||
|
Subroutine
in: called CC=2 SCAR=7.9
Pod
undocumented
| |||||||||||
| 36 | 1 | my $self = shift; | |||||||||
| 37 | 1 | $self = __PACKAGE__->new(); | |||||||||
| 38 | 1 | ▶ | if (@_) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 39 | 0 | $self->{ in } = shift; | |||||||||
| 40 | 0 | return $self; | |||||||||
| 41 | } | ||||||||||
| 42 | 1 | return $self->{ in }; | |||||||||
| 43 | } | ||||||||||
| 44 | |||||||||||
| 45 | 1 | ▶ | sub error { | ||||||||
|
Subroutine
error: called CC=2 SCAR=7.9
Pod
undocumented
| |||||||||||
| 46 | 1 | my $self = shift; | |||||||||
| 47 | 1 | $self = __PACKAGE__->new(); | |||||||||
| 48 | 1 | ▶ | if (@_) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 49 | 0 | $self->{ error } = shift; | |||||||||
| 50 | 0 | return $self; | |||||||||
| 51 | } | ||||||||||
| 52 | 1 | return $self->{ error }; | |||||||||
| 53 | } | ||||||||||
| 54 | |||||||||||
| 55 | |||||||||||
| 56 | 1 | ▶ | sub perl { | ||||||||
|
Subroutine
perl: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 57 | 1 | return EO::System::Perl->new(); | |||||||||
| 58 | } | ||||||||||
| 59 | |||||||||||
| 60 | 2 | ▶ | sub os { | ||||||||
|
Subroutine
os: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 61 | 2 | return EO::System::OS->new(); | |||||||||
| 62 | } | ||||||||||
| 63 | |||||||||||
| 64 | 2 | 1; | |||||||||