Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/pry-nav/pry_remote_ext.rb
Instance Method Summary collapse
-
#remote_pry(host = 'localhost', port = 9876) ⇒ Object
Override pry-remote’s Object#remote_pry to use the above PryRemote::Server.
Instance Method Details
#remote_pry(host = 'localhost', port = 9876) ⇒ Object
Override pry-remote’s Object#remote_pry to use the above PryRemote::Server. The PryNav::Tracer instance is responsible for terminating the DRb server by calling PryRemote::Server#stop
80 81 82 83 84 85 86 87 |
# File 'lib/pry-nav/pry_remote_ext.rb', line 80 def remote_pry(host = 'localhost', port = 9876) client = PryRemote::Server.start(host, port) Pry.start self, { :input => client.input_proxy, :output => client.output, :pry_remote => true } end |