mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Merge pull request #2084 from casperisfine/ruby-27-frozen-strings
Fix Ruby 2.7 compatibility in Pry::Slop#mehtod_missing
This commit is contained in:
commit
899684c3ba
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