Class: Cucumber::Core::Gherkin::AstBuilder::ScenarioBuilder

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

Defined Under Namespace

Classes: StepBuilder

Instance Method Summary collapse

Methods inherited from Builder

#initialize

Constructor Details

This class inherits a constructor from Cucumber::Core::Gherkin::AstBuilder::Builder

Instance Method Details

#add_step(file, node) ⇒ Object



198
199
200
# File 'lib/cucumber/core/gherkin/ast_builder.rb', line 198

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

#result(background, language, feature_tags) ⇒ Object



182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
# File 'lib/cucumber/core/gherkin/ast_builder.rb', line 182

def result(background, language, feature_tags)
  Ast::Scenario.new(
    node,
    language,
    location,
    background,
    comments,
    tags,
    feature_tags,
    node.keyword,
    node.name,
    node.description,
    steps(language)
  )
end