Class: IRB::RemoteOutputMethod
- Inherits:
-
OutputMethod
- Object
- OutputMethod
- IRB::RemoteOutputMethod
- Defined in:
- lib/drbirb/server.rb
Instance Attribute Summary collapse
-
#callback ⇒ Object
Returns the value of attribute callback.
Instance Method Summary collapse
-
#initialize(callback) ⇒ RemoteOutputMethod
constructor
A new instance of RemoteOutputMethod.
- #print(*args) ⇒ Object
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
#callback ⇒ Object
Returns the value of attribute callback.
34 35 36 |
# File 'lib/drbirb/server.rb', line 34 def callback @callback end |
Instance Method Details
#print(*args) ⇒ Object
40 41 42 |
# File 'lib/drbirb/server.rb', line 40 def print(*args) callback[args * ''] end |