Class: Cucumber::Events::HookTestStepCreated
- Defined in:
- lib/cucumber/events/hook_test_step_created.rb
Overview
Event fired when a step is created from a hook
Instance Attribute Summary collapse
-
#hook ⇒ Object
readonly
Returns the value of attribute hook.
-
#test_step ⇒ Object
readonly
Returns the value of attribute test_step.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(test_step, hook) ⇒ HookTestStepCreated
constructor
A new instance of HookTestStepCreated.
Methods inherited from Base
Constructor Details
#initialize(test_step, hook) ⇒ HookTestStepCreated
Returns a new instance of HookTestStepCreated.
15 16 17 18 19 |
# File 'lib/cucumber/events/hook_test_step_created.rb', line 15 def initialize(test_step, hook) @test_step = test_step @hook = hook super() end |
Instance Attribute Details
#hook ⇒ Object (readonly)
Returns the value of attribute hook.
9 10 11 |
# File 'lib/cucumber/events/hook_test_step_created.rb', line 9 def hook @hook end |
#test_step ⇒ Object (readonly)
Returns the value of attribute test_step.
9 10 11 |
# File 'lib/cucumber/events/hook_test_step_created.rb', line 9 def test_step @test_step end |
Class Method Details
.event_id ⇒ Object
11 12 13 |
# File 'lib/cucumber/events/hook_test_step_created.rb', line 11 def self.event_id :hook_test_step_created end |