class Cucumber::Parser::GherkinBuilder::Builder

Attributes

file[R]
node[R]

Public Class Methods

new(file, node) click to toggle source
# File lib/cucumber/parser/gherkin_builder.rb, line 108
def initialize(file, node)
  @file, @node = file, node
end

Private Instance Methods

comment() click to toggle source
# File lib/cucumber/parser/gherkin_builder.rb, line 122
def comment
  Ast::Comment.new(node.comments.map{ |comment| comment.value }.join("\n"))
end
location() click to toggle source
# File lib/cucumber/parser/gherkin_builder.rb, line 118
def location
  Ast::Location.new(file, node.line)
end
tags() click to toggle source
# File lib/cucumber/parser/gherkin_builder.rb, line 114
def tags
  Ast::Tags.new(nil, node.tags)
end