Class: ParallelSplitTest::OutputRecorder

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

Instance Method Summary collapse

Constructor Details

#initialize(out) ⇒ OutputRecorder

Returns a new instance of OutputRecorder.



5
6
7
8
# File 'lib/parallel_split_test/output_recorder.rb', line 5

def initialize(out)
  @recorded = StringIO.new
  @out = out
end

Instance Method Details

#recordedObject



19
20
21
22
# File 'lib/parallel_split_test/output_recorder.rb', line 19

def recorded
  @recorded.rewind
  @recorded.read
end