Class: Taf::TestSteps::Step

Inherits:
Object
  • Object
show all
Defined in:
lib/taf/test_steps/step.rb

Overview

steps.rb - methods for collecting steps info for tap report file.

Direct Known Subclasses

FailureStep, SkipStep, SuccessStep

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(index:, description:) ⇒ Step

Returns a new instance of Step.



9
10
11
12
13
14
15
# File 'lib/taf/test_steps/step.rb', line 9

def initialize(
  index:,
  description:
)
  @index = index
  @description = description
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



7
8
9
# File 'lib/taf/test_steps/step.rb', line 7

def description
  @description
end

#indexObject (readonly)

Returns the value of attribute index.



7
8
9
# File 'lib/taf/test_steps/step.rb', line 7

def index
  @index
end