aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/UI/ViewPort/Field/Mutable/Number.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Reaction/UI/ViewPort/Field/Mutable/Number.pm')
-rw-r--r--lib/Reaction/UI/ViewPort/Field/Mutable/Number.pm14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/Reaction/UI/ViewPort/Field/Mutable/Number.pm b/lib/Reaction/UI/ViewPort/Field/Mutable/Number.pm
index d2be595..31416e4 100644
--- a/lib/Reaction/UI/ViewPort/Field/Mutable/Number.pm
+++ b/lib/Reaction/UI/ViewPort/Field/Mutable/Number.pm
@@ -2,13 +2,15 @@ package Reaction::UI::ViewPort::Field::Mutable::Number;
use Reaction::Class;
-class Number is 'Reaction::UI::ViewPort::Field::Number', which {
- does 'Reaction::UI::ViewPort::Field::Role::Mutable::Simple';
+use namespace::clean -except => [ qw(meta) ];
+extends 'Reaction::UI::ViewPort::Field::Number';
- implements adopt_value_string => as {
- my ($self) = @_;
- $self->value($self->value_string);
- };
+with 'Reaction::UI::ViewPort::Field::Role::Mutable::Simple';
+sub adopt_value_string {
+ my ($self) = @_;
+ $self->value($self->value_string);
};
+__PACKAGE__->meta->make_immutable;
+
1;