Class: Cucumber::Formatter::LegacyApi::Ast::ScenarioOutline

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

#locationObject

Returns the value of attribute location

Returns:

  • (Object)

    the current value of location



302
303
304
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 302

def location
  @location
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



302
303
304
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 302

def name
  @name
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



302
303
304
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 302

def status
  @status
end

Instance Method Details

#backtrace_line(step_name = name.to_s, line = self.location.line) ⇒ Object



303
304
305
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 303

def backtrace_line(step_name = name.to_s, line = self.location.line)
  "#{location.on_line(line)}:in `#{step_name}'"
end

#failed?Boolean

Returns:

  • (Boolean)


307
308
309
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 307

def failed?
  :failed == status
end

#lineObject



311
312
313
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 311

def line
  location.line
end