Class: Cucumber::Formatter::LegacyApi::Ast::ExampleTableRow
- Inherits:
-
Struct
- Object
- Struct
- Cucumber::Formatter::LegacyApi::Ast::ExampleTableRow
- Defined in:
- lib/cucumber/formatter/legacy_api/ast.rb
Instance Attribute Summary collapse
-
#cells ⇒ Object
Returns the value of attribute cells.
-
#exception ⇒ Object
Returns the value of attribute exception.
-
#language ⇒ Object
Returns the value of attribute language.
-
#location ⇒ Object
Returns the value of attribute location.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#cells ⇒ Object
Returns the value of attribute cells
242 243 244 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 242 def cells @cells end |
#exception ⇒ Object
Returns the value of attribute exception
242 243 244 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 242 def exception @exception end |
#language ⇒ Object
Returns the value of attribute language
242 243 244 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 242 def language @language end |
#location ⇒ Object
Returns the value of attribute location
242 243 244 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 242 def location @location end |
#status ⇒ Object
Returns the value of attribute status
242 243 244 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 242 def status @status end |
Instance Method Details
#failed? ⇒ Boolean
251 252 253 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 251 def failed? status == :failed end |
#keyword ⇒ Object
259 260 261 262 263 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 259 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 |
#line ⇒ Object
255 256 257 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 255 def line location.line end |
#name ⇒ Object
243 244 245 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 243 def name '| ' + cells.join(' | ') + ' |' end |
#to_s ⇒ Object
247 248 249 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 247 def to_s name end |