summaryrefslogtreecommitdiff
path: root/lib/pry/config.rb
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2019-03-24 14:30:00 +0200
committerKyrylo Silin <silin@kyrylo.org>2019-03-24 14:30:00 +0200
commitb85073f80833b4377ea92bfcfb93cb03a2773559 (patch)
treed6b27a3eab4e76b8cd4fb0c82327f9fc1e9b85ee /lib/pry/config.rb
parentb938bddf0a0825ee3f61768bd95dc2d80c2714b7 (diff)
downloadpry-b85073f80833b4377ea92bfcfb93cb03a2773559.tar.gz
rubocop: fix offences of the Style/CaseEquality cop
Diffstat (limited to 'lib/pry/config.rb')
-rw-r--r--lib/pry/config.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry/config.rb b/lib/pry/config.rb
index 6c497314..fd6d92b9 100644
--- a/lib/pry/config.rb
+++ b/lib/pry/config.rb
@@ -28,7 +28,7 @@ class Pry
# Will only show the first line of the backtrace
exception_handler: proc do |output, exception, _|
- if UserError === exception && SyntaxError === exception
+ if exception.is_a?(UserError) && exception.is_a?(SyntaxError)
output.puts "SyntaxError: #{exception.message.sub(/.*syntax error, */m, '')}"
else
output.puts "#{exception.class}: #{exception.message}"