diff options
Diffstat (limited to 'lib/Reaction/UI/ViewPort/Field/Integer.pm')
-rw-r--r-- | lib/Reaction/UI/ViewPort/Field/Integer.pm | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/Reaction/UI/ViewPort/Field/Integer.pm b/lib/Reaction/UI/ViewPort/Field/Integer.pm index d3681cb..7064edb 100644 --- a/lib/Reaction/UI/ViewPort/Field/Integer.pm +++ b/lib/Reaction/UI/ViewPort/Field/Integer.pm @@ -3,8 +3,12 @@ package Reaction::UI::ViewPort::Field::Integer; use Reaction::Class; use aliased 'Reaction::UI::ViewPort::Field'; -class Integer is Field, which { - has '+value' => (isa => 'Int'); -}; +use namespace::clean -except => [ qw(meta) ]; +extends Field; + + +has '+value' => (isa => 'Int'); +__PACKAGE__->meta->make_immutable; + 1; |