Class: Cucumber::Core::Test::HookCompiler::HookMapper::AroundHook
- Inherits:
-
Object
- Object
- Cucumber::Core::Test::HookCompiler::HookMapper::AroundHook
- Defined in:
- lib/cucumber/core/test/hook_compiler.rb
Instance Method Summary collapse
- #call(continue) ⇒ Object
- #describe_to(visitor, *args, &continue) ⇒ Object
-
#initialize(source, &block) ⇒ AroundHook
constructor
A new instance of AroundHook.
Constructor Details
#initialize(source, &block) ⇒ AroundHook
Returns a new instance of AroundHook.
92 93 94 95 |
# File 'lib/cucumber/core/test/hook_compiler.rb', line 92 def initialize(source, &block) @source = source @block = block end |
Instance Method Details
#call(continue) ⇒ Object
97 98 99 |
# File 'lib/cucumber/core/test/hook_compiler.rb', line 97 def call(continue) @block.call(continue) end |
#describe_to(visitor, *args, &continue) ⇒ Object
101 102 103 |
# File 'lib/cucumber/core/test/hook_compiler.rb', line 101 def describe_to(visitor, *args, &continue) visitor.around_hook(self, *args, &continue) end |