Class: IRB::RemoteReadlineInputMethod

Inherits:
ReadlineInputMethod
  • Object
show all
Defined in:
lib/drbirb/server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#callbackObject

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