Class: Cucumber::Core::Gherkin::AstBuilder::BackgroundBuilder

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

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



165
166
167
# File 'lib/cucumber/core/gherkin/ast_builder.rb', line 165

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

#result(language) ⇒ Object



152
153
154
155
156
157
158
159
160
161
162
163
# File 'lib/cucumber/core/gherkin/ast_builder.rb', line 152

def result(language)
  Ast::Background.new(
    node,
    language,
    location,
    comments,
    node.keyword,
    node.name,
    node.description,
    steps(language)
  )
end