Class: Cucumber::Core::Test::HookStep
- Inherits:
-
Object
- Object
- Cucumber::Core::Test::HookStep
- Defined in:
- lib/cucumber/core/test/hook_compiler.rb
Instance Method Summary collapse
- #describe_source_to(visitor, *args) ⇒ Object
- #describe_to(visitor, *args) ⇒ Object
- #execute ⇒ Object
-
#initialize(source, &block) ⇒ HookStep
constructor
A new instance of HookStep.
- #inspect ⇒ Object
- #map ⇒ Object
- #match_locations?(locations) ⇒ Boolean
- #skip ⇒ Object
Constructor Details
Instance Method Details
#describe_source_to(visitor, *args) ⇒ Object
16 17 18 |
# File 'lib/cucumber/core/test/hook_compiler.rb', line 16 def describe_source_to(visitor, *args) visitor.hook(*args) end |
#describe_to(visitor, *args) ⇒ Object
12 13 14 |
# File 'lib/cucumber/core/test/hook_compiler.rb', line 12 def describe_to(visitor, *args) visitor.test_step(self, *args) end |
#execute ⇒ Object
20 21 22 |
# File 'lib/cucumber/core/test/hook_compiler.rb', line 20 def execute @mapping.execute end |
#inspect ⇒ Object
36 37 38 |
# File 'lib/cucumber/core/test/hook_compiler.rb', line 36 def inspect "#{self.class}" end |
#map ⇒ Object
28 29 30 |
# File 'lib/cucumber/core/test/hook_compiler.rb', line 28 def map self end |
#match_locations?(locations) ⇒ Boolean
32 33 34 |
# File 'lib/cucumber/core/test/hook_compiler.rb', line 32 def match_locations?(locations) false end |
#skip ⇒ Object
24 25 26 |
# File 'lib/cucumber/core/test/hook_compiler.rb', line 24 def skip execute end |