| 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 | 0 | ▶ | sub BUILD { |
|
Subroutine
BUILD: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 17 | 0 | my $self = shift; | |
| 18 | 0 | $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__ | ||