Skip to content

Commit

Permalink
Use default hooks instead of creating new hooks
Browse files Browse the repository at this point in the history
"Use default hooks instead of create a new hooks, so we have maximum compatible with pry and inherit all new feature hook, like whereami"

https: //github.com/Mon-Ouie/pull/64
Co-Authored-By: Võ Anh Duy <[email protected]>
  • Loading branch information
tylerdiaz and voanhduy1512 committed Nov 29, 2022
1 parent 9021936 commit 845a22b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pry-remote.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def initialize(object, host = DefaultHost, port = DefaultPort, options = {})

# Code that has to be called for Pry-remote to work properly
def setup
@hooks = Pry::Hooks.new
@hooks = Pry::DEFAULT_HOOKS.dup

@hooks.add_hook :before_eval, :pry_remote_capture do
capture_output
Expand Down

0 comments on commit 845a22b

Please sign in to comment.