| 1 | package Data::Localize::Format::NamedArgs; | ||||||||||||
| 2 | 1 | ▶ | use Moo; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 3 | |||||||||||||
| 4 | 1 | extends 'Data::Localize::Format'; | |||||||||||
| 5 | |||||||||||||
| 6 | 14 | ▶ | sub format { | ||||||||||
|
Subroutine
format: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||||
| 7 | 14 | my ($self, $lang, $value, $args) = @_; | |||||||||||
| 8 | |||||||||||||
| 9 | 14 | ▶ | return $value unless ref $args eq 'HASH'; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 10 | |||||||||||||
| 11 | 12 | ▶ | $value =~ s/\{\{([^}]+)\}\}/ $args->{ $1 } || '' /gex; | ||||||||||
|
Condition50%1/2
$args->{$1} || ''
MC/DC0%0/1
$args->{$1} || ''
$args->{$1}
Truth table50%1/2
A
A= $args->{$1}
| |||||||||||||
| 12 | 12 | return $value; | |||||||||||
| 13 | } | ||||||||||||
| 14 | |||||||||||||
| 15 | 1 | 1; | |||||||||||
| 16 | |||||||||||||
| 17 | __END__ | ||||||||||||