Class: TestBench::Output::Writer::Substitute::Writer

Inherits:
TestBench::Output::Writer show all
Defined in:
lib/test_bench/output/writer/substitute.rb

Instance Attribute Summary

Attributes inherited from TestBench::Output::Writer

#alternate_device, #buffer, #column_sequence, #device, #digest, #indentation_depth, #peer, #sequence, #styling_policy

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from TestBench::Output::Writer

#branch, configure, #current?, #decrease_indentation, #flush, follow, #follows?, #increase_indentation, #indent, #print, #puts, #style, #styling?, #sync, #sync=, #tty?, #write, #written?

Class Method Details

.buildObject



15
16
17
18
19
# File 'lib/test_bench/output/writer/substitute.rb', line 15

def self.build
  instance = new
  instance.buffer.limit = 0
  instance
end

Instance Method Details

#styling!Object



21
22
23
# File 'lib/test_bench/output/writer/substitute.rb', line 21

def styling!
  self.styling_policy = Styling.on
end

#written_dataObject Also known as: written_text



10
11
12
# File 'lib/test_bench/output/writer/substitute.rb', line 10

def written_data
  device.written_data
end