X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FDevel-REPL.git;a=blobdiff_plain;f=lib%2FDevel%2FREPL%2FPlugin%2FNopaste.pm;h=485d08c867733a22aa5158589930186d41b0be63;hp=2d9b8fcde7f8b3b8459f679d582b7304c2015644;hb=b595a818b1d89dbea55ace1af86d0df91c97ba0c;hpb=76cd9acd4630d77ac67967cefcea99ec9591e1be diff --git a/lib/Devel/REPL/Plugin/Nopaste.pm b/lib/Devel/REPL/Plugin/Nopaste.pm index 2d9b8fc..485d08c 100644 --- a/lib/Devel/REPL/Plugin/Nopaste.pm +++ b/lib/Devel/REPL/Plugin/Nopaste.pm @@ -1,9 +1,8 @@ package Devel::REPL::Plugin::Nopaste; use Devel::REPL::Plugin; -use MooseX::AttributeHelpers; use Moose::Util::TypeConstraints; -use namespace::clean -except => [ 'meta' ]; +use namespace::autoclean; use Scalar::Util qw(blessed); sub BEFORE_PLUGIN { @@ -12,18 +11,17 @@ sub BEFORE_PLUGIN { } has complete_session => ( - metaclass => 'String', + traits => ['String'], is => 'rw', isa => 'Str', lazy => 1, default => '', - provides => { - append => 'add_to_session', + handles => { + add_to_session => 'append', }, ); has paste_title => ( - metaclass => 'String', is => 'rw', isa => 'Str', lazy => 1,