| 1 | package Video::Delay::Const; | ||
| 2 | |||
| 3 | # Pragmas. | ||
| 4 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | # Modules. | ||
| 8 | 4 | ▶ | use Class::Utils qw(set_params); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | # Version. | ||
| 11 | 4 | our $VERSION = 0.06; | |
| 12 | |||
| 13 | # Constructor. | ||
| 14 | sub new { | ||
| 15 | 4 | ▶ | my ($class, @params) = @_; |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 16 | |||
| 17 | # Create object. | ||
| 18 | 4 | my $self = bless {}, $class; | |
| 19 | |||
| 20 | # Constant. | ||
| 21 | 4 | $self->{'const'} = 1000; | |
| 22 | |||
| 23 | # Process params. | ||
| 24 | 4 | set_params($self, @params); | |
| 25 | |||
| 26 | # Object. | ||
| 27 | 2 | return $self; | |
| 28 | } | ||
| 29 | |||
| 30 | # Get delay. | ||
| 31 | sub delay { | ||
| 32 | 2 | ▶ | my $self = shift; |
|
Subroutine
delay: called CC=1 SCAR=0.0
Pod
documented
| |||
| 33 | 2 | return $self->{'const'}; | |
| 34 | } | ||
| 35 | |||
| 36 | 4 | 1; | |
| 37 | |||
| 38 | __END__ | ||