We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9933961 commit d0c8e9cCopy full SHA for d0c8e9c
lib/iruby/display.rb
@@ -216,10 +216,12 @@ def inspect
216
class TypeFormatMatcher < FormatMatcher
217
def initialize(class_block)
218
super() do |obj|
219
- self.klass === obj
220
- # We have to rescue all exceptions since constant autoloading could fail with a different error
221
- rescue Exception
222
- false
+ begin
+ self.klass === obj
+ # We have to rescue all exceptions since constant autoloading could fail with a different error
+ rescue Exception
223
+ false
224
+ end
225
end
226
@class_block = class_block
227
0 commit comments