Class: Cucumber::Core::Test::AroundHook

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/core/test/around_hook.rb

Instance Method Summary collapse

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