X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FDevel-REPL.git;a=blobdiff_plain;f=lib%2FDevel%2FREPL%2FPlugin%2FCompletion.pm;h=e87521c41edd1424817ad69350dcd4e542eedee7;hp=dcc18377281507e8013ed744c94b58ff29c36d6b;hb=e2d0b0198529e2e06593df8ebab7a8413bc932e1;hpb=9b7bfb6ac233dca407f12db47aa8dda7c9c1d338 diff --git a/lib/Devel/REPL/Plugin/Completion.pm b/lib/Devel/REPL/Plugin/Completion.pm index dcc1837..e87521c 100644 --- a/lib/Devel/REPL/Plugin/Completion.pm +++ b/lib/Devel/REPL/Plugin/Completion.pm @@ -2,30 +2,31 @@ package Devel::REPL::Plugin::Completion; use Devel::REPL::Plugin; use Scalar::Util 'weaken'; use PPI; -use namespace::autoclean; +use namespace::sweep; +use MooX::Types::MooseLike::Base qw(ArrayRef Int Bool); has current_matches => ( is => 'rw', - isa => 'ArrayRef', + isa => ArrayRef, lazy => 1, default => sub { [] }, ); has match_index => ( is => 'rw', - isa => 'Int', + isa => Int, lazy => 1, default => sub { 0 }, ); has no_term_class_warning => ( - isa => "Bool", + isa => Bool, is => "rw", - default => 0, + default => sub { 0 }, ); has do_readline_filename_completion => ( # so default is no if Completion loaded - isa => "Bool", + isa => Bool, is => "rw", lazy => 1, default => sub { 0 },