Class: PryRemote::Client
Overview
A client is used to retrieve information from the client program.
Instance Attribute Summary collapse
-
#input ⇒ Object
Returns the value of attribute input.
-
#output ⇒ Object
Returns the value of attribute output.
-
#stderr ⇒ Object
Returns the value of attribute stderr.
-
#stdout ⇒ Object
Returns the value of attribute stdout.
-
#thread ⇒ Object
Returns the value of attribute thread.
Instance Method Summary collapse
-
#input_proxy ⇒ InputProxy
Proxy for the input.
-
#kill ⇒ Object
Tells the client the session is terminated.
-
#wait ⇒ Object
Waits until both an input and output are set.
Instance Attribute Details
#input ⇒ Object
Returns the value of attribute input
119 120 121 |
# File 'lib/pry-remote.rb', line 119 def input @input end |
#output ⇒ Object
Returns the value of attribute output
119 120 121 |
# File 'lib/pry-remote.rb', line 119 def output @output end |
#stderr ⇒ Object
Returns the value of attribute stderr
119 120 121 |
# File 'lib/pry-remote.rb', line 119 def stderr @stderr end |
#stdout ⇒ Object
Returns the value of attribute stdout
119 120 121 |
# File 'lib/pry-remote.rb', line 119 def stdout @stdout end |
#thread ⇒ Object
Returns the value of attribute thread
119 120 121 |
# File 'lib/pry-remote.rb', line 119 def thread @thread end |
Instance Method Details
#input_proxy ⇒ InputProxy
Returns Proxy for the input.
131 132 133 |
# File 'lib/pry-remote.rb', line 131 def input_proxy InputProxy.new input end |
#kill ⇒ Object
Tells the client the session is terminated
126 127 128 |
# File 'lib/pry-remote.rb', line 126 def kill thread.run end |
#wait ⇒ Object
Waits until both an input and output are set
121 122 123 |
# File 'lib/pry-remote.rb', line 121 def wait sleep 0.01 until input and output and thread end |