X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDevel%2FREPL%2FPlugin%2FNopaste.pm;h=d37734097d02d054cd4dc45eb6ae4c528246d1ea;hb=refs%2Fheads%2Fmaster;hp=db6ff7cfa0ffc51667f55147ee4a89580b6aa21c;hpb=aa8b764738156914d48d182ee0706e4c3d4e5c99;p=p5sagit%2FDevel-REPL.git diff --git a/lib/Devel/REPL/Plugin/Nopaste.pm b/lib/Devel/REPL/Plugin/Nopaste.pm index db6ff7c..d377340 100644 --- a/lib/Devel/REPL/Plugin/Nopaste.pm +++ b/lib/Devel/REPL/Plugin/Nopaste.pm @@ -1,7 +1,12 @@ +use strict; +use warnings; package Devel::REPL::Plugin::Nopaste; +# ABSTRACT: #nopaste to upload session's input and output + +our $VERSION = '1.003030'; use Devel::REPL::Plugin; -use Moose::Util::TypeConstraints; +use Moose::Util::TypeConstraints 'enum'; use namespace::autoclean; use Scalar::Util qw(blessed); @@ -11,7 +16,7 @@ sub BEFORE_PLUGIN { } has complete_session => ( - metaclass => 'String', + traits => ['String'], is => 'rw', isa => 'Str', lazy => 1, @@ -94,9 +99,7 @@ sub command_pastetitle { __END__ -=head1 NAME - -Devel::REPL::Plugin::Nopaste - #nopaste to upload session's input and output +=pod =head1 COMMANDS @@ -114,7 +117,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 +135,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 @@ -148,4 +151,3 @@ Shawn M Moore, C<< >> =back =cut -