| 1 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | package | ||||||||||
| 5 | XHTML::Instrumented::Form::Option; | ||||||||||
| 6 | 2 | ▶ | use base 'XHTML::Instrumented::Form::ElementControl'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | sub as_args | ||||||||||
| 9 | 0 | ▶ | { | ||||||||
|
Subroutine
as_args: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||
| 10 | 0 | my $self = shift; | |||||||||
| 11 | 0 | my %hash = %$self; | |||||||||
| 12 | 0 | delete $hash{text}; | |||||||||
| 13 | 0 | ▶ | if ($hash{disabled}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | 0 | $hash{disabled} = 'disabled'; | |||||||||
| 15 | } | ||||||||||
| 16 | 0 | ▶ | if ($hash{selected}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | 0 | $hash{selected} = 'selected'; | |||||||||
| 18 | } | ||||||||||
| 19 | 0 | %hash; | |||||||||
| 20 | } | ||||||||||
| 21 | |||||||||||
| 22 | sub selected | ||||||||||
| 23 | 0 | ▶ | { | ||||||||
|
Subroutine
selected: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 24 | 0 | my $self = shift; | |||||||||
| 25 | |||||||||||
| 26 | 0 | $self->{selected}; | |||||||||
| 27 | } | ||||||||||
| 28 | |||||||||||
| 29 | sub disabled | ||||||||||
| 30 | 0 | ▶ | { | ||||||||
|
Subroutine
disabled: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 31 | 0 | my $self = shift; | |||||||||
| 32 | |||||||||||
| 33 | 0 | $self->{disabled}; | |||||||||
| 34 | } | ||||||||||
| 35 | |||||||||||
| 36 | sub text | ||||||||||
| 37 | 0 | ▶ | { | ||||||||
|
Subroutine
text: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 38 | 0 | my $self = shift; | |||||||||
| 39 | |||||||||||
| 40 | 0 | $self->{text}; | |||||||||
| 41 | } | ||||||||||
| 42 | |||||||||||
| 43 | sub value | ||||||||||
| 44 | 0 | ▶ | { | ||||||||
|
Subroutine
value: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 45 | 0 | my $self = shift; | |||||||||
| 46 | |||||||||||
| 47 | 0 | ▶ | $self->{value} || $self->{text}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 48 | } | ||||||||||
| 49 | |||||||||||
| 50 | |||||||||||
| 51 | 2 | 1; | |||||||||
| 52 | |||||||||||
| 53 | __END__ | ||||||||||