1
0
Fork 0
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:
Kyrylo Silin 2019-10-21 23:11:09 +08:00 committed by GitHub
commit 899684c3ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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