Class: PryRemote::InputProxy
Overview
A class to represent an input object created from DRb. This is used because Pry checks for arity to know if a prompt should be passed to the object.
Instance Attribute Summary collapse
-
#input ⇒ #readline
Object to proxy.
Instance Method Summary collapse
-
#readline(prompt) ⇒ Object
Reads a line from the input.
Instance Attribute Details
#input ⇒ #readline
Object to proxy
15 16 17 |
# File 'lib/pry-remote.rb', line 15 def input @input end |
Instance Method Details
#readline(prompt) ⇒ Object
Reads a line from the input
17 18 19 |
# File 'lib/pry-remote.rb', line 17 def readline(prompt) input.readline(prompt) end |