blob: 5293b11bb39452e596453face00cb131f94a02fc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package Reaction::UI::ViewPort::Field::Mutable::Boolean;
use Reaction::Class;
class Boolean is 'Reaction::UI::ViewPort::Field::Boolean', which{
does 'Reaction::UI::ViewPort::Field::Role::Mutable';
implements BUILD => as {
my($self) = @_;
$self->value(0) unless $self->has_value;
};
};
1;
|