Module: TestBench::Output::Controls::Device::TTY

Defined in:
lib/test_bench/output/controls/device.rb

Defined Under Namespace

Modules: Non

Class Method Summary collapse

Class Method Details

.example(tty: nil) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/test_bench/output/controls/device.rb', line 10

def self.example(tty: nil)
  tty = true if tty.nil?

  device = Device.example
  device.tty! if tty
  device
end