+use strict;
+use warnings;
package Devel::REPL::Plugin::Turtles;
-use Devel::REPL::Plugin;
-
-use Scalar::Util qw(reftype);
+# ABSTRACT: Generic command creation using a read hook
-use MooseX::AttributeHelpers;
+our $VERSION = '1.003030';
-use namespace::clean -except => [ 'meta' ];
+use Devel::REPL::Plugin;
+use Scalar::Util qw(reftype);
+use namespace::autoclean;
has default_command_prefix => (
isa => "RegexpRef",
);
has turtles_matchers => (
- metaclass => "Collection::Array",
+ traits => ['Array'],
isa => "ArrayRef[RegexpRef|CodeRef]",
is => "rw",
lazy => 1,
default => sub { my $prefix = shift->default_command_prefix; [qr/^ $prefix (\w+) \s* (.*) /x] },
- provides => {
- unshift => "add_turtles_matcher",
+ handles => {
+ add_turtles_matcher => 'unshift',
},
);
__END__
-=head1 NAME
-
-Devel::REPL::Plugin::Turtles - Generic command creation using a read hook
+=pod
=head1 DESCRIPTION
shell escape character in the PDL shell.
=cut
-