Added Plugin/NewlineHack, simple plugin to print a newline after output
[p5sagit/Devel-REPL.git] / lib / Devel / REPL / Plugin / Turtles.pm
CommitLineData
e958cbc6 1package Devel::REPL::Plugin::Turtles;
2use Moose::Role;
3
4around 'eval' => sub {
5 my $next = shift;
6 my ($self, $line) = @_;
7 if ($line =~ /^#(.*)/) {
8 return $next->($self, ('$self->' . $1 . '; return();'));
9 }
10 else {
11 return $next->($self, $line);
12 }
13
14};
15
161;