class Cucumber::Core::Gherkin::AstBuilder

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

Gherkin parser.

Public Class Methods

new(uri) click to toggle source
# File lib/cucumber/core/gherkin/ast_builder.rb, line 11
def initialize(uri)
  @uri = uri
end

Public Instance Methods

feature(attributes) click to toggle source
# File lib/cucumber/core/gherkin/ast_builder.rb, line 15
def feature(attributes)
  DocumentBuilder.new(file, attributes).feature
end

Private Instance Methods

file() click to toggle source
# File lib/cucumber/core/gherkin/ast_builder.rb, line 21
def file
  @uri
end