Class: IRB::RemoteReadlineInputMethod
- Inherits:
-
ReadlineInputMethod
- Object
- ReadlineInputMethod
- IRB::RemoteReadlineInputMethod
- Defined in:
- lib/drbirb/server.rb
Instance Attribute Summary collapse
-
#callback ⇒ Object
Returns the value of attribute callback.
Instance Method Summary collapse
-
#initialize(callback) ⇒ RemoteReadlineInputMethod
constructor
A new instance of RemoteReadlineInputMethod.
- #readline(prompt, ignore) ⇒ Object
Constructor Details
#initialize(callback) ⇒ RemoteReadlineInputMethod
Returns a new instance of RemoteReadlineInputMethod.
23 24 25 26 |
# File 'lib/drbirb/server.rb', line 23 def initialize callback @callback = callback super() end |
Instance Attribute Details
#callback ⇒ Object
Returns the value of attribute callback.
22 23 24 |
# File 'lib/drbirb/server.rb', line 22 def callback @callback end |
Instance Method Details
#readline(prompt, ignore) ⇒ Object
28 29 30 |
# File 'lib/drbirb/server.rb', line 28 def readline prompt, ignore callback[prompt] end |