Module: TestBench::Output::Controls::Styling
- Defined in:
- lib/test_bench/output/controls/styling.rb
Class Method Summary collapse
Class Method Details
.example ⇒ Object
5 6 7 |
# File 'lib/test_bench/output/controls/styling.rb', line 5 def self.example Writer::Styling.on end |
.other_example ⇒ Object
9 10 11 |
# File 'lib/test_bench/output/controls/styling.rb', line 9 def self.other_example Writer::Styling.off end |
.random ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/test_bench/output/controls/styling.rb', line 13 def self.random stylings = [ Writer::Styling.on, Writer::Styling.off, Writer::Styling.detect ] index = Random.integer % stylings.count stylings[index] end |