Module: TestBench::Session::Controls::Events::Detailed::MultipleLines::Random
- Extended by:
- EventData
- Defined in:
- lib/test_bench/session/controls/events/detailed.rb
Class Method Summary collapse
Class Method Details
.example(omit_heading: nil, heading: nil, **attributes) ⇒ Object
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/test_bench/session/controls/events/detailed.rb', line 89 def self.example(omit_heading: nil, heading: nil, **attributes) if omit_heading.nil? omit_heading = !heading.nil? end suffix = Controls::Random.string if not omit_heading heading = Detail::Heading::Random.example(suffix) end text = Detail::Text::MultipleLines::Random.example(suffix) Detailed::Random.example(text:, heading:, **attributes) end |