1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Fix Ruby 2.7 compatibility in Pry::Slop#mehtod_missing

This commit is contained in:
Jean Boussier 2019-10-01 13:33:23 +02:00
parent fa97d5c299
commit 3be0dc1c61

View file

@ -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