| 1 | package Kelp::Module::Beam::Wire; | ||||||||||||
| 2 | 1 | $Kelp::Module::Beam::Wire::VERSION = '1.00'; | |||||||||||
| 3 | 1 | ▶ | use Kelp::Base 'Kelp::Module'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 1 | ▶ | use Beam::Wire; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | |||||||||||||
| 6 | sub build | ||||||||||||
| 7 | 1 | ▶ | { | ||||||||||
|
Subroutine
build: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||||
| 8 | 1 | my ($self, %args) = @_; | |||||||||||
| 9 | |||||||||||||
| 10 | 1 | my $wire = Beam::Wire->new(%args); | |||||||||||
| 11 | 1 | ▶ | $wire->set($args{app_service} // 'app', $self->app); | ||||||||||
|
Condition50%1/2
$args{"app_service"} // "app"
MC/DC0%0/1
$args{"app_service"} // "app"
$args{"app_service"}
Truth table50%1/2
A
A= $args{"app_service"}
| |||||||||||||
| 12 | |||||||||||||
| 13 | # register as a sub so that it is avaliable in class context | ||||||||||||
| 14 | 1 | ▶ | $self->register(container => sub { $wire }); | ||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||
| 15 | |||||||||||||
| 16 | 1 | return; | |||||||||||
| 17 | } | ||||||||||||
| 18 | |||||||||||||
| 19 | 1 | 1; | |||||||||||
| 20 | __END__ | ||||||||||||