blib/lib/HTML/Shakan/Field/Input.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 24 / 24 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/HTML/Shakan/Field/Date.pm ↑ Summary blib/lib/HTML/Shakan/Role/Filter.pm »
1 package HTML::Shakan::Field::Input;
2 22 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 22 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 22 ▶use Mouse;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 22 extends 'HTML::Shakan::Field';
6  
7 22 has '+widget' => (
8 default => 'input',
9 );
10  
11 22 has type => (
12 is => 'ro',
13 isa => 'Str',
14 required => 1,
15 );
16 sub BUILD {
17 49 ▶ my $self = shift;
Subroutine BUILD: called CC=1 SCAR=0.0
Pod documented
18 49 $self->attr->{type} = $self->type;
19 }
20  
21 22 ▶no Mouse;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 22 __PACKAGE__->meta->make_immutable;
23 __END__
24  
25 =head1 NAME
26  
27 HTML::Shakan::Field::Input - <input /> field
28  
29 =head1 DESCRIPTION
30  
31 This module provides the <input /> field object.
32  
33 =head1 ATTRIBUTE
34  
35 =over 4
36  
37 =item type
38  
39 <input type="XXX" /> attribute.
40  
41 =back
42  
43 =head1 SEE ALSO
44  
45 L<HTML::Shakan>
46  
« blib/lib/HTML/Shakan/Field/Date.pm ↑ Summary blib/lib/HTML/Shakan/Role/Filter.pm »