Class: Cucumber::Formatter::LegacyApi::StepBacktraceLine

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(step) ⇒ StepBacktraceLine

Returns a new instance of StepBacktraceLine.

Raises:

  • (ArgumentError)


1015
1016
1017
1018
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 1015

def initialize(step)
  raise ArgumentError if step.nil?
  super
end

Instance Attribute Details

#stepObject

Returns the value of attribute step

Returns:

  • (Object)

    the current value of step



1014
1015
1016
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 1014

def step
  @step
end

Instance Method Details

#to_sObject



1020
1021
1022
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 1020

def to_s
  step.backtrace_line
end