| 1 | package Perl::Dist::Asset::Launcher; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use Carp 'croak'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use Params::Util qw{ _STRING }; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 1 | ▶ | use vars qw{$VERSION}; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 1 | $VERSION = '1.16'; | |||||||||
| 10 | } | ||||||||||
| 11 | |||||||||||
| 12 | 1 | ▶ | use Object::Tiny qw{ | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | name | ||||||||||
| 14 | bin | ||||||||||
| 15 | 1 | }; | |||||||||
| 16 | |||||||||||
| 17 | |||||||||||
| 18 | |||||||||||
| 19 | |||||||||||
| 20 | |||||||||||
| 21 | ##################################################################### | ||||||||||
| 22 | # Constructor | ||||||||||
| 23 | |||||||||||
| 24 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||
| 25 | 0 | my $self = shift->SUPER::new(@_); | |||||||||
| 26 | |||||||||||
| 27 | # Check params | ||||||||||
| 28 | 0 | ▶ | unless ( _STRING($self->name) ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 29 | 0 | croak("Did not provide a name"); | |||||||||
| 30 | } | ||||||||||
| 31 | 0 | ▶ | unless ( _STRING($self->bin) ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 32 | 0 | croak("Did not provide a URL"); | |||||||||
| 33 | } | ||||||||||
| 34 | |||||||||||
| 35 | 0 | return $self; | |||||||||
| 36 | } | ||||||||||
| 37 | |||||||||||
| 38 | 1 | 1; | |||||||||