Class: IRB::RemoteOutputMethod

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(callback) ⇒ RemoteOutputMethod

Returns a new instance of RemoteOutputMethod.



35
36
37
38
# File 'lib/drbirb/server.rb', line 35

def initialize callback
  @callback = callback
  super()
end

Instance Attribute Details

#callbackObject

Returns the value of attribute callback.



34
35
36
# File 'lib/drbirb/server.rb', line 34

def callback
  @callback
end

Instance Method Details



40
41
42
# File 'lib/drbirb/server.rb', line 40

def print(*args)
  callback[args * '']
end