FormHandler/Field/MonthName.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 94.4% 17 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
build_options
1.0
BEGIN
1.0
CRAP 1.0
« FormHandler/Field/BoolSelect.pm ↑ Summary FormHandler/Field/Weekday.pm »
1 package HTML::FormHandler::Field::MonthName;
2 # ABSTRACT: select list with month names
3 1 $HTML::FormHandler::Field::MonthName::VERSION = '0.410001';
4 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 extends 'HTML::FormHandler::Field::Select';
6  
7 sub build_options {
8 1 ▶ my $i = 1;
Subroutine build_options: called CC=1 SCAR=0.0
Pod undocumented
9 1 my @months = qw/
10 January
11 February
12 March
13 April
14 May
15 June
16 July
17 August
18 September
19 October
20 November
21 December
22 /;
23 1 return [ map { { value => $i++, label => $_ } } @months ];
24 }
25  
26  
27 1 __PACKAGE__->meta->make_immutable;
28 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
29 1 1;
30  
31 __END__
32  
33 =pod
34  
35 =encoding UTF-8
36  
37 =head1 NAME
38  
39 HTML::FormHandler::Field::MonthName - select list with month names
40  
41 =head1 VERSION
42  
43 version 0.410001
44  
45 =head1 DESCRIPTION
46  
47 Generates a list of English month names.
48  
49 =head1 AUTHOR
50  
51 FormHandler Contributors - see HTML::FormHandler
52  
53 =head1 COPYRIGHT AND LICENSE
54  
55 This software is copyright (c) 2017 by Gerda Shank.
56  
57 This is free software; you can redistribute it and/or modify it under
58 the same terms as the Perl 5 programming language system itself.
59  
60 =cut
« FormHandler/Field/BoolSelect.pm ↑ Summary FormHandler/Field/Weekday.pm »