| 1 | package Catmandu::Fix::sfx_threshold; | ||
| 2 | |||
| 3 | 1 | ▶ | use Catmandu::Sane; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use Catmandu::Util qw(:is); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use Catmandu::SFX; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use Catmandu::Fix::Has; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | has path => (fix_arg => 1); | |
| 10 | |||
| 11 | 1 | with 'Catmandu::Fix::SimpleGetValue'; | |
| 12 | |||
| 13 | 6 | ▶ | sub emit_value { |
|
Subroutine
emit_value: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 14 | 6 | my ($self, $var, $fixer) = @_; | |
| 15 | 6 | my $sfx = $fixer->capture(Catmandu::SFX->new()); | |
| 16 | 6 | "if (is_string(${var})) {" . | |
| 17 | "${var} = ${sfx}->parse_sfx_threshold(${var})" . | ||
| 18 | "}"; | ||
| 19 | } | ||
| 20 | |||
| 21 | 1 | 1; | |
| 22 | |||
| 23 | __END__ | ||