Class: PryRemoteReloaded::Client

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#editorObject

Returns the value of attribute editor

Returns:

  • (Object)

    the current value of editor



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

def editor
  @editor
end

#inputObject

Returns the value of attribute input

Returns:

  • (Object)

    the current value of input



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

def input
  @input
end

#outputObject

Returns the value of attribute output

Returns:

  • (Object)

    the current value of output



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

def output
  @output
end

#stderrObject

Returns the value of attribute stderr

Returns:

  • (Object)

    the current value of stderr



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

def stderr
  @stderr
end

#stdoutObject

Returns the value of attribute stdout

Returns:

  • (Object)

    the current value of stdout



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

def stdout
  @stdout
end

#threadObject

Returns the value of attribute thread

Returns:

  • (Object)

    the current value of thread



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

def thread
  @thread
end

Instance Method Details

#input_proxyInputProxy

Returns Proxy for the input.

Returns:



137
138
139
# File 'lib/pry-remote-reloaded.rb', line 137

def input_proxy
  InputProxy.new input
end

#killObject

Tells the client the session is terminated



132
133
134
# File 'lib/pry-remote-reloaded.rb', line 132

def kill
  thread.run
end

#waitObject

Waits until both an input and output are set



127
128
129
# File 'lib/pry-remote-reloaded.rb', line 127

def wait
  sleep 0.01 until input and output and thread
end