Module: TestBench::Session::Controls::Events::Detailed::MultipleLines

Extended by:
EventData
Defined in:
lib/test_bench/session/controls/events/detailed.rb

Defined Under Namespace

Modules: Random

Class Method Summary collapse

Class Method Details

.example(omit_heading: nil, heading: nil, **attributes) ⇒ Object



58
59
60
61
62
63
64
65
66
67
68
# File 'lib/test_bench/session/controls/events/detailed.rb', line 58

def self.example(omit_heading: nil, heading: nil, **attributes)
  if omit_heading.nil?
    omit_heading = !heading.nil?
  end

  if not omit_heading
    heading ||= self.heading
  end

  Detailed.example(text:, quote:, heading:, **attributes)
end

.headingObject



82
83
84
# File 'lib/test_bench/session/controls/events/detailed.rb', line 82

def self.heading
  Detail::Heading.example
end

.quoteObject



78
79
80
# File 'lib/test_bench/session/controls/events/detailed.rb', line 78

def self.quote
  true
end

.randomObject



70
71
72
# File 'lib/test_bench/session/controls/events/detailed.rb', line 70

def self.random
  Random.example
end

.textObject



74
75
76
# File 'lib/test_bench/session/controls/events/detailed.rb', line 74

def self.text
  Detail::Text::MultipleLines.example
end