aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/UI/ViewPort/Field/Boolean.pm
blob: 53356ef7fc0590893ab42db297c92390d8310529 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package Reaction::UI::ViewPort::Field::Boolean;

use Reaction::Class;
use aliased 'Reaction::UI::ViewPort::Field';

use namespace::clean -except => [ qw(meta) ];
extends Field;


has '+value' => (isa => 'Bool');

override _empty_string_value => sub { 0 };
__PACKAGE__->meta->make_immutable;


1;