Class: LoadTest::ResultSender

Inherits:
Object
  • Object
show all
Defined in:
lib/load_test.rb

Overview

Send result to parent process.

Instance Method Summary collapse

Constructor Details

#initialize(writer) ⇒ ResultSender

Constructor.

writer

writer of IO.pipe



151
152
153
# File 'lib/load_test.rb', line 151

def initialize(writer)
  @writer = writer
end

Instance Method Details

#<<(data) ⇒ Object

Send result to parent process.

data

Marshalable object.



158
159
160
# File 'lib/load_test.rb', line 158

def <<(data)
  Marshal.dump(data, @writer)
end