X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDevel%2FREPL%2FPlugin%2FNopaste.pm;h=353ec2b60797d6054925f61892a3be88f80fe029;hb=f109bc790c4450543e3bd07beb3abee5c4b923e0;hp=2d9b8fcde7f8b3b8459f679d582b7304c2015644;hpb=76cd9acd4630d77ac67967cefcea99ec9591e1be;p=p5sagit%2FDevel-REPL.git diff --git a/lib/Devel/REPL/Plugin/Nopaste.pm b/lib/Devel/REPL/Plugin/Nopaste.pm index 2d9b8fc..353ec2b 100644 --- a/lib/Devel/REPL/Plugin/Nopaste.pm +++ b/lib/Devel/REPL/Plugin/Nopaste.pm @@ -1,9 +1,12 @@ +use strict; +use warnings; package Devel::REPL::Plugin::Nopaste; +our $VERSION = '1.003027'; + use Devel::REPL::Plugin; -use MooseX::AttributeHelpers; -use Moose::Util::TypeConstraints; -use namespace::clean -except => [ 'meta' ]; +use Moose::Util::TypeConstraints 'enum'; +use namespace::autoclean; use Scalar::Util qw(blessed); sub BEFORE_PLUGIN { @@ -12,18 +15,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, @@ -116,7 +118,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 @@ -134,7 +136,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