5 6 7
# File 'lib/test_bench/output/controls/styling.rb', line 5 def self.example Writer::Styling.on end
9 10 11
# File 'lib/test_bench/output/controls/styling.rb', line 9 def self.other_example Writer::Styling.off end
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