Class: ParallelSplitTest::OutputRecorder
- Inherits:
-
Object
- Object
- ParallelSplitTest::OutputRecorder
- Defined in:
- lib/parallel_split_test/output_recorder.rb
Instance Method Summary collapse
-
#initialize(out) ⇒ OutputRecorder
constructor
A new instance of OutputRecorder.
- #recorded ⇒ Object
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
#recorded ⇒ Object
19 20 21 22 |
# File 'lib/parallel_split_test/output_recorder.rb', line 19 def recorded @recorded.rewind @recorded.read end |