FormHandler/Field/BoolSelect.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 93.7% 15 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
build_options
1.0
BEGIN
1.0
CRAP 1.0
« FormHandler/Widget/Wrapper/None.pm ↑ Summary FormHandler/Field/MonthName.pm »
1 package HTML::FormHandler::Field::BoolSelect;
2 # ABSTRACT: Boolean select field
3 3 $HTML::FormHandler::Field::BoolSelect::VERSION = '0.410000';
4  
5 3 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 extends 'HTML::FormHandler::Field::Select';
7  
8 3 has '+empty_select' => ( default => 'Select One' );
9  
10 sub build_options { [
11 3 ▶ { value => 1, label => 'True'},
Subroutine build_options: called CC=1 SCAR=0.0
Pod undocumented
12 { value => 0, label => 'False' }
13 ]};
14  
15  
16 3 __PACKAGE__->meta->make_immutable;
17 3 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 3 1;
19  
20 __END__
21  
22 =pod
23  
24 =encoding UTF-8
25  
26 =head1 NAME
27  
28 HTML::FormHandler::Field::BoolSelect - Boolean select field
29  
30 =head1 VERSION
31  
32 version 0.410000
33  
34 =head1 SYNOPSIS
35  
36 A Boolean select field with three states: null, 1, 0.
37 Empty select is 'Select One'.
38  
39 =head1 AUTHOR
40  
41 FormHandler Contributors - see HTML::FormHandler
42  
43 =head1 COPYRIGHT AND LICENSE
44  
45 This software is copyright (c) 2017 by Gerda Shank.
46  
47 This is free software; you can redistribute it and/or modify it under
48 the same terms as the Perl 5 programming language system itself.
49  
50 =cut
« FormHandler/Widget/Wrapper/None.pm ↑ Summary FormHandler/Field/MonthName.pm »