Class: Cucumber::Events::StepActivated

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/events/step_activated.rb

Overview

Event fired when a step is activated

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(test_step, step_match) ⇒ StepActivated

 @private



21
22
23
# File 'lib/cucumber/events/step_activated.rb', line 21

def initialize(test_step, step_match)
  @test_step, @step_match = test_step, step_match
end

Instance Attribute Details

#step_matchCucumber::StepMatch (readonly)

 Information about the matching definition.

Returns:



18
19
20
# File 'lib/cucumber/events/step_activated.rb', line 18

def step_match
  @step_match
end

#test_stepCucumber::Core::Test::Step (readonly)

 The test step that was matched.

Returns:

  • (Cucumber::Core::Test::Step)


13
14
15
# File 'lib/cucumber/events/step_activated.rb', line 13

def test_step
  @test_step
end