Class: PryRemote::Client

Inherits:
Struct
  • Object
show all
Defined in:
lib/pry-remote.rb

Overview

A client is used to retrieve information from the client program.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#inputObject

Returns the value of attribute input



118
119
120
# File 'lib/pry-remote.rb', line 118

def input
  @input
end

#outputObject

Returns the value of attribute output



118
119
120
# File 'lib/pry-remote.rb', line 118

def output
  @output
end

#stderrObject

Returns the value of attribute stderr



118
119
120
# File 'lib/pry-remote.rb', line 118

def stderr
  @stderr
end

#stdoutObject

Returns the value of attribute stdout



118
119
120
# File 'lib/pry-remote.rb', line 118

def stdout
  @stdout
end

#threadObject

Returns the value of attribute thread



118
119
120
# File 'lib/pry-remote.rb', line 118

def thread
  @thread
end

Instance Method Details

#input_proxyInputProxy



130
131
132
# File 'lib/pry-remote.rb', line 130

def input_proxy
  InputProxy.new input
end

#killObject

Tells the client the session is terminated



125
126
127
# File 'lib/pry-remote.rb', line 125

def kill
  thread.run
end

#waitObject

Waits until both an input and output are set



120
121
122
# File 'lib/pry-remote.rb', line 120

def wait
  sleep 0.01 until input and output and thread
end