Module: TestBench::Session::Controls::Events::Commented::MultipleLines::Random
- Extended by:
- EventData
- Defined in:
- lib/test_bench/session/controls/events/commented.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/commented.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 = Comment::Heading::Random.example(suffix) end text = Comment::Text::MultipleLines::Random.example(suffix) Commented::Random.example(text:, heading:, **attributes) end |