Class: Cucumber::Core::Test::HookCompiler::HookMapper::AroundHook

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

Instance Method Summary collapse

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