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

Instance Method Details

#add_step(file, node) ⇒ Object



196
197
198
# File 'lib/cucumber/core/gherkin/ast_builder.rb', line 196

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

#result(background, language, feature_tags) ⇒ Object



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

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