From b27e1fc2fba43d908d4e02b22729506190cebd23 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 11 Sep 2013 22:11:48 -0400 Subject: temporarily rename this variable until p5-mop is fixed --- lib/Reply/Plugin/Autocomplete/Methods.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Reply/Plugin/Autocomplete/Methods.pm b/lib/Reply/Plugin/Autocomplete/Methods.pm index f1fd8b0..98cdd41 100644 --- a/lib/Reply/Plugin/Autocomplete/Methods.pm +++ b/lib/Reply/Plugin/Autocomplete/Methods.pm @@ -31,7 +31,7 @@ class Reply::Plugin::Autocomplete::Methods extends Reply::Plugin { $method_prefix = '' unless defined $method_prefix; - my $class; + my $klass; if ($invocant =~ /^\$/) { # XXX should support globals here my $env = { @@ -39,14 +39,14 @@ class Reply::Plugin::Autocomplete::Methods extends Reply::Plugin { }; my $var = $env->{$invocant}; return unless $var && ref($var) eq 'REF' && blessed($$var); - $class = blessed($$var); + $klass = blessed($$var); } else { - $class = $invocant; + $klass = $invocant; } my @results; - for my $method (methods($class)) { + for my $method (methods($klass)) { push @results, $method if index($method, $method_prefix) == 0; } -- cgit v1.2.3-54-g00ecf