Class: Cucumber::Formatter::LegacyApi::Ast::ExampleTableRow

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cellsObject

Returns the value of attribute cells

Returns:

  • (Object)

    the current value of cells



239
240
241
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 239

def cells
  @cells
end

#exceptionObject

Returns the value of attribute exception

Returns:

  • (Object)

    the current value of exception



239
240
241
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 239

def exception
  @exception
end

#languageObject

Returns the value of attribute language

Returns:

  • (Object)

    the current value of language



239
240
241
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 239

def language
  @language
end

#locationObject

Returns the value of attribute location

Returns:

  • (Object)

    the current value of location



239
240
241
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 239

def location
  @location
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



239
240
241
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 239

def status
  @status
end

Instance Method Details

#failed?Boolean

Returns:

  • (Boolean)


244
245
246
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 244

def failed?
  status == :failed
end

#keywordObject



252
253
254
255
256
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 252

def keyword
  # This method is only called when used for the scenario name line with
  # the expand option, and on that line the keyword is "Scenario"
  language.scenario_keywords[0]
end

#lineObject



248
249
250
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 248

def line
  location.line
end

#nameObject



240
241
242
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 240

def name
  '| ' + cells.join(' | ') + ' |'
end