X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FDevel-REPL.git;a=blobdiff_plain;f=lib%2FDevel%2FREPL%2FPlugin%2FCompletionDriver%2FMethods.pm;h=eff0cb905c450aa993b37af043692d335b02e219;hp=4044e1c7769af0657e7469c539c2197f16661d05;hb=6f4f9516b3422a8ce51b89b596fb808b197f833e;hpb=3a40071593734bf02e987a076b6408095ecfad41 diff --git a/lib/Devel/REPL/Plugin/CompletionDriver/Methods.pm b/lib/Devel/REPL/Plugin/CompletionDriver/Methods.pm index 4044e1c..eff0cb9 100644 --- a/lib/Devel/REPL/Plugin/CompletionDriver/Methods.pm +++ b/lib/Devel/REPL/Plugin/CompletionDriver/Methods.pm @@ -1,6 +1,10 @@ +use strict; +use warnings; package Devel::REPL::Plugin::CompletionDriver::Methods; + use Devel::REPL::Plugin; -use namespace::clean -except => [ 'meta' ]; +use Devel::REPL::Plugin::Completion; # die early if cannot load +use namespace::autoclean; sub BEFORE_PLUGIN { my $self = shift; @@ -57,8 +61,8 @@ around complete => sub { return $orig->(@_), grep { $_ =~ $re } - map { $_->{name} } - $metaclass->compute_all_applicable_methods; + map { $_->name } + $metaclass->get_all_methods; }; 1;