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

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

Overview

 Builds an AST of a feature by listening to events from the Gherkin parser.

Defined Under Namespace

Classes: BackgroundBuilder, Builder, DataTableBuilder, DocStringBuilder, ExamplesTableBuilder, FeatureBuilder, OutlineStepBuilder, ScenarioBuilder, ScenarioOutlineBuilder, StepBuilder

Instance Method Summary collapse

Constructor Details

#initialize(uri) ⇒ AstBuilder

Returns a new instance of AstBuilder.



11
12
13
# File 'lib/cucumber/core/gherkin/ast_builder.rb', line 11

def initialize(uri)
  @uri = uri
end

Instance Method Details

#feature(attributes) ⇒ Object



15
16
17
# File 'lib/cucumber/core/gherkin/ast_builder.rb', line 15

def feature(attributes)
  FeatureBuilder.new(file, attributes).result
end