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=2a880044b990f641427d3556039736e8bd4ab0d9;hp=16fcd8f71360c423027e3e5858da7075c0e46966;hb=8d5343b5f1fb9e3b33d1d36e96aabc94e29a822b;hpb=8bf7245015d1b51f0c798f46e4ca3d823caab814 diff --git a/lib/Devel/REPL/Plugin/Nopaste.pm b/lib/Devel/REPL/Plugin/Nopaste.pm index 16fcd8f..2a88004 100644 --- a/lib/Devel/REPL/Plugin/Nopaste.pm +++ b/lib/Devel/REPL/Plugin/Nopaste.pm @@ -1,8 +1,10 @@ +use strict; +use warnings; package Devel::REPL::Plugin::Nopaste; use Devel::REPL::Plugin; use Moose::Util::TypeConstraints; -use namespace::clean -except => [ 'meta' ]; +use namespace::autoclean; use Scalar::Util qw(blessed); sub BEFORE_PLUGIN { @@ -11,7 +13,7 @@ sub BEFORE_PLUGIN { } has complete_session => ( - metaclass => 'String', + traits => ['String'], is => 'rw', isa => 'Str', lazy => 1, @@ -114,7 +116,7 @@ the nopaste site. For example: C<#pastetitle example of some code> -defaults to 'Devel::REPL session' +defaults to C<'Devel::REPL session'>. =head1 CONFIGURATION @@ -132,7 +134,7 @@ The default of commenting out the output would be set like this: C<< $_REPL->nopaste_format( 'comment_output' ); >> -These options can be set during a Devel::REPL session, but only affect +These options can be set during a L session, but only affect the future parts of the session, not the past parts. =head1 AUTHOR