class Gherkin::Formatter::Model::Step::Builder

Public Class Methods

new(*args) click to toggle source
# File lib/gherkin/formatter/model.rb, line 162
def initialize(*args)
  @args = *args
  @rows = nil
  @doc_string = nil
end

Public Instance Methods

build() click to toggle source
# File lib/gherkin/formatter/model.rb, line 181
def build
  Step.new(*(@args << @rows << @doc_string))
end
doc_string(string, content_type, line) click to toggle source
# File lib/gherkin/formatter/model.rb, line 173
def doc_string(string, content_type, line)
  @doc_string = Formatter::Model::DocString.new(string, content_type, line)
end
replay(formatter) click to toggle source
# File lib/gherkin/formatter/model.rb, line 177
def replay(formatter)
  build.replay(formatter)
end
row(comments, cells, line, id) click to toggle source
# File lib/gherkin/formatter/model.rb, line 168
def row(comments, cells, line, id)
  @rows ||= []
  @rows << DataTableRow.new(comments, cells, line)
end