class Cucumber::Core::Gherkin::AstBuilder::BackgroundBuilder

def add_step(file, node)

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

def result(language)

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

def step_builders

def step_builders
  @step_builders ||= []
end

def steps(language)

def steps(language)
  step_builders.map { |step_builder| step_builder.result(language) }
end