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:
parent
fa97d5c299
commit
3be0dc1c61
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue