Module: TestBench::Output::Writer::Substitute

Included in:
Writer
Defined in:
lib/test_bench/output/writer/substitute.rb

Defined Under Namespace

Modules: Build Classes: Writer

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.buildObject



5
6
7
# File 'lib/test_bench/output/writer/substitute.rb', line 5

def self.build
  Writer.build
end

.included(cls) ⇒ Object



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

def self.included(cls)
  cls.class_exec do
    extend Build
  end
end

Instance Method Details

#styling!Object



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

def styling!
  self.styling_policy = Styling.on
end

#written_dataObject Also known as: written_text



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

def written_data
  device.written_data
end