| 1 | 4 | ▶ | use 5.008; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | package Data::Conveyor::Stage; | ||
| 6 | 4 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 4 | $Data::Conveyor::Stage::VERSION = '1.103130'; | |
| 8 | } | ||
| 9 | # ABSTRACT: Stage-based conveyor-belt-like ticket handling system | ||
| 10 | |||
| 11 | # Base class for stages. | ||
| 12 | # | ||
| 13 | # To use it, create an object of this class, set the ticket and | ||
| 14 | # call run(). You can then read the status the stage's ticket and act on it. | ||
| 15 | 4 | ▶ | use Error::Hierarchy::Util 'assert_defined'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 4 | ▶ | use parent 'Class::Scaffold::Storable'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | 4 | __PACKAGE__->mk_scalar_accessors(qw(will_shift_ticket)); | |
| 18 | 4 | ▶ | use constant DEFAULTS => (will_shift_ticket => 1,); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | |||
| 20 | 0 | ▶ | sub run { |
|
Subroutine
run: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 21 | 0 | my $self = shift; | |
| 22 | 0 | $self->begin; | |
| 23 | 0 | $self->main; | |
| 24 | 0 | $self->end; | |
| 25 | } | ||
| 26 | 0 | ▶ | sub begin { } |
|
Subroutine
begin: not called CC=1 SCAR=0.0
Pod
documented
| |||
| 27 | 0 | ▶ | sub main { } |
|
Subroutine
main: not called CC=1 SCAR=0.0
Pod
documented
| |||
| 28 | 0 | ▶ | sub end { } |
|
Subroutine
end: not called CC=1 SCAR=0.0
Pod
documented
| |||
| 29 | 4 | 1; | |
| 30 | |||
| 31 | |||
| 32 | __END__ | ||