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

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

Defined Under Namespace

Classes: AroundHook

Instance Method Summary collapse

Instance Method Details

#after(&block) ⇒ Object



83
84
85
# File 'lib/cucumber/core/test/hook_compiler.rb', line 83

def after(&block)
  compiler.after_hook HookStep.new(source, &block)
end

#around(&block) ⇒ Object



87
88
89
# File 'lib/cucumber/core/test/hook_compiler.rb', line 87

def around(&block)
  compiler.around_hook AroundHook.new(source, &block)
end

#before(&block) ⇒ Object



79
80
81
# File 'lib/cucumber/core/test/hook_compiler.rb', line 79

def before(&block)
  compiler.before_hook HookStep.new(source, &block)
end