Class: Cucumber::Formatter::LegacyApi::Ast::MultilineArg::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/formatter/legacy_api/ast.rb

Instance Method Summary collapse

Constructor Details

#initialize(node) ⇒ Builder

Returns a new instance of Builder


324
325
326
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 324

def initialize(node)
  node.describe_to(self)
end

Instance Method Details

#data_table(node) ⇒ Object


332
333
334
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 332

def data_table(node)
  @result = DataTable.new(node)
end

#doc_string(node) ⇒ Object


328
329
330
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 328

def doc_string(node)
  @result = DocString.new(node)
end

#legacy_table(node) ⇒ Object


336
337
338
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 336

def legacy_table(node)
  @result = LegacyTable.new(node)
end

#resultObject


340
341
342
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 340

def result
  @result || Node.new(nil)
end