Class: Cucumber::Core::Gherkin::AstBuilder::ScenarioOutlineBuilder

Inherits:
Builder
  • Object
show all
Defined in:
lib/cucumber/core/gherkin/ast_builder.rb

Defined Under Namespace

Classes: ExamplesTableBuilder, StepBuilder

Instance Method Summary collapse

Instance Method Details

#add_examples(file, node) ⇒ Object



244
245
246
# File 'lib/cucumber/core/gherkin/ast_builder.rb', line 244

def add_examples(file, node)
  examples_tables << ExamplesTableBuilder.new(file, node).result
end

#add_step(file, node) ⇒ Object



248
249
250
# File 'lib/cucumber/core/gherkin/ast_builder.rb', line 248

def add_step(file, node)
  step_builders << StepBuilder.new(file, node)
end

#result(background, language, feature_tags) ⇒ Object



226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
# File 'lib/cucumber/core/gherkin/ast_builder.rb', line 226

def result(background, language, feature_tags)
  scenario_outline = Ast::ScenarioOutline.new(
    language,
    location,
    background,
    comments,
    tags,
    feature_tags,
    node.keyword,
    node.name,
    node.description,
    steps(language),
    examples_tables
  )
  scenario_outline.gherkin_statement(node)
  scenario_outline
end