Class: Cucumber::Core::Test::AroundHook
- Inherits:
-
Object
- Object
- Cucumber::Core::Test::AroundHook
- Defined in:
- lib/cucumber/core/test/around_hook.rb
Instance Method Summary collapse
- #call(continue) ⇒ Object
- #describe_to(visitor, *args, &continue) ⇒ Object
-
#initialize(&block) ⇒ AroundHook
constructor
A new instance of AroundHook.
Constructor Details
#initialize(&block) ⇒ AroundHook
Returns a new instance of AroundHook.
5 6 7 |
# File 'lib/cucumber/core/test/around_hook.rb', line 5 def initialize(&block) @block = block end |
Instance Method Details
#call(continue) ⇒ Object
13 14 15 |
# File 'lib/cucumber/core/test/around_hook.rb', line 13 def call(continue) @block.call(continue) end |
#describe_to(visitor, *args, &continue) ⇒ Object
9 10 11 |
# File 'lib/cucumber/core/test/around_hook.rb', line 9 def describe_to(visitor, *args, &continue) visitor.around_hook(self, *args, &continue) end |