class Cucumber::Core::Gherkin::AstBuilder::FeatureBuilder
def children
def children feature_element_builders end
def feature_elements
def feature_elements feature_element_builders.map { |builder| builder.result(language) } end
def initialize(*)
def initialize(*) super @language = Ast::LanguageDelegator.new(attributes[:language], ::Gherkin::Dialect.for(attributes[:language])) @feature_element_builders = attributes[:children].map do |child| case child[:type] when :Background BackgroundBuilder.new(file, child) when :Scenario ScenarioBuilder.new(file, child) else ScenarioOutlineBuilder.new(file, child) end end end
def result
def result Ast::Feature.new( language, location, comments, tags, keyword, name, description, feature_elements ) end