Class: 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 ⇒ Object
readonly
Information about the matching definition.
-
#test_step ⇒ Object
readonly
The test step that was matched.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(test_step, step_match) ⇒ StepActivated
constructor
A new instance of StepActivated.
Methods inherited from Base
Constructor Details
#initialize(test_step, step_match) ⇒ StepActivated
Returns a new instance of StepActivated.
19 20 21 22 23 |
# File 'lib/cucumber/events/step_activated.rb', line 19 def initialize(test_step, step_match) @test_step = test_step @step_match = step_match super() end |
Instance Attribute Details
#step_match ⇒ Object (readonly)
13 14 15 |
# File 'lib/cucumber/events/step_activated.rb', line 13 def step_match @step_match end |
#test_step ⇒ Object (readonly)
The test step that was matched.
@return [Cucumber::Core::Test::Step]
9 10 11 |
# File 'lib/cucumber/events/step_activated.rb', line 9 def test_step @test_step end |
Class Method Details
.event_id ⇒ Object
15 16 17 |
# File 'lib/cucumber/events/step_activated.rb', line 15 def self.event_id :step_activated end |