We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 946281d commit 183e191Copy full SHA for 183e191
lib/better_errors/repl/pry.rb
@@ -43,7 +43,8 @@ def initialize(binding, exception)
43
@input = BetterErrors::REPL::Pry::Input.new
44
@output = BetterErrors::REPL::Pry::Output.new
45
@pry = ::Pry.new input: @input, output: @output
46
- @pry.hooks.clear_all if defined?(@pry.hooks.clear_all)
+ @pry.hooks.clear_event_hooks(:before_session) if @pry.hooks.respond_to?(:clear_event_hooks) # pry version >= 0.11.x
47
+ @pry.hooks.clear_all if @pry.hooks.respond_to?(:clear_all) # pry version <= 0.10.x
48
store_last_exception exception
49
@fiber.resume
50
end
0 commit comments