diff options
| author | Kyrylo Silin <silin@kyrylo.org> | 2019-10-21 23:11:09 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-21 23:11:09 +0800 |
| commit | 899684c3ba24156e0ca3853b74ac58c276a14379 (patch) | |
| tree | 99ee9aef5e9ab40ab3eca0ff23ad619049febb5a | |
| parent | fa97d5c2997ff1cf03cf925df482a7a1d9ca3ea3 (diff) | |
| parent | 3be0dc1c6164cdbf158bf35237e78267ad05a1f6 (diff) | |
| download | pry-899684c3ba24156e0ca3853b74ac58c276a14379.tar.gz | |
Merge pull request #2084 from casperisfine/ruby-27-frozen-strings
Fix Ruby 2.7 compatibility in Pry::Slop#mehtod_missing
| -rw-r--r-- | lib/pry/slop.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
