Module: TestBench::Output::Controls::Styling

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

Class Method Summary collapse

Class Method Details

.exampleObject



5
# File 'lib/test_bench/output/controls/styling.rb', line 5

def self.example = Writer::Styling.on

.other_exampleObject



6
# File 'lib/test_bench/output/controls/styling.rb', line 6

def self.other_example = Writer::Styling.off

.randomObject



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/test_bench/output/controls/styling.rb', line 8

def self.random
  stylings = [
    Writer::Styling.on,
    Writer::Styling.off,
    Writer::Styling.detect
  ]

  index = Random.integer % stylings.count

  stylings[index]
end