From 3be0dc1c6164cdbf158bf35237e78267ad05a1f6 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Tue, 1 Oct 2019 13:33:23 +0200 Subject: [PATCH] Fix Ruby 2.7 compatibility in Pry::Slop#mehtod_missing --- lib/pry/slop.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pry/slop.rb b/lib/pry/slop.rb index bf51f5a1..99c48f4b 100644 --- a/lib/pry/slop.rb +++ b/lib/pry/slop.rb @@ -454,7 +454,7 @@ class Pry def method_missing(method, *args, &block) meth = method.to_s if meth.end_with?('?') - meth.chop! + meth = meth.chop present?(meth) || present?(meth.tr('_', '-')) else super