Class: Turnip::Node::ScenarioGroupDefinition
- Inherits:
-
Base
- Object
- Base
- Turnip::Node::ScenarioGroupDefinition
show all
- Defined in:
- lib/turnip/node/scenario_group_definition.rb
Instance Attribute Summary
Attributes inherited from Base
#raw
Instance Method Summary
collapse
Methods inherited from Base
#initialize
#line, #location
Instance Method Details
#backgrounds ⇒ Object
21
22
23
24
25
|
# File 'lib/turnip/node/scenario_group_definition.rb', line 21
def backgrounds
@backgrounds ||= children.select do |c|
c.is_a?(Background)
end
end
|
#description ⇒ Object
17
18
19
|
# File 'lib/turnip/node/scenario_group_definition.rb', line 17
def description
@raw.description
end
|
#keyword ⇒ Object
13
14
15
|
# File 'lib/turnip/node/scenario_group_definition.rb', line 13
def keyword
@raw.keyword
end
|
#name ⇒ Object
9
10
11
|
# File 'lib/turnip/node/scenario_group_definition.rb', line 9
def name
@raw.name
end
|
#scenarios ⇒ Object
27
28
29
30
31
32
33
34
35
36
|
# File 'lib/turnip/node/scenario_group_definition.rb', line 27
def scenarios
@scenarios ||= children.map do |c|
case c
when Scenario
c
when ScenarioOutline
c.to_scenarios
end
end.flatten.compact
end
|