Class: Cucumber::Events::StepActivated
- Inherits:
-
Object
- Object
- Cucumber::Events::StepActivated
- Defined in:
- lib/cucumber/events/step_activated.rb
Overview
Event fired when a step is activated
Instance Attribute Summary collapse
-
#step_match ⇒ Cucumber::StepMatch
readonly
Information about the matching definition.
-
#test_step ⇒ Cucumber::Core::Test::Step
readonly
The test step that was matched.
Instance Method Summary collapse
-
#initialize(test_step, step_match) ⇒ StepActivated
constructor
A new instance of StepActivated.
Constructor Details
#initialize(test_step, step_match) ⇒ StepActivated
Returns a new instance of StepActivated.
20 21 22 |
# File 'lib/cucumber/events/step_activated.rb', line 20 def initialize(test_step, step_match) @test_step, @step_match = test_step, step_match end |
Instance Attribute Details
#step_match ⇒ Cucumber::StepMatch (readonly)
Information about the matching definition.
17 18 19 |
# File 'lib/cucumber/events/step_activated.rb', line 17 def step_match @step_match end |
#test_step ⇒ Cucumber::Core::Test::Step (readonly)
The test step that was matched.
12 13 14 |
# File 'lib/cucumber/events/step_activated.rb', line 12 def test_step @test_step end |