X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FReaction%2FUI%2FViewPort%2FField%2FInteger.pm;h=8a050a4d248199d6a4a8123591722f7f4eb611c9;hb=HEAD;hp=d3681cb604f5c93084246a3743f770b6596fa634;hpb=ddccc6a29affc90888a59f14d698fd3afb2757dc;p=catagits%2FReaction.git diff --git a/lib/Reaction/UI/ViewPort/Field/Integer.pm b/lib/Reaction/UI/ViewPort/Field/Integer.pm index d3681cb..8a050a4 100644 --- a/lib/Reaction/UI/ViewPort/Field/Integer.pm +++ b/lib/Reaction/UI/ViewPort/Field/Integer.pm @@ -1,10 +1,13 @@ package Reaction::UI::ViewPort::Field::Integer; use Reaction::Class; -use aliased 'Reaction::UI::ViewPort::Field'; +use namespace::clean -except => [ qw(meta) ]; +use MooseX::Types::Moose qw/Int/; -class Integer is Field, which { - has '+value' => (isa => 'Int'); -}; +extends 'Reaction::UI::ViewPort::Field'; + +has '+value' => (isa => Int); + +__PACKAGE__->meta->make_immutable; 1;