Method: Baseline::BenchContext#wrap_with_hooks

Defined in:
lib/baseline.rb

#wrap_with_hooks(options = {}, &block) ⇒ Object



49
50
51
52
53
# File 'lib/baseline.rb', line 49

def wrap_with_hooks(options={}, &block)
  exec_hooks(options[:before])
  yield
  exec_hooks(options[:after])
end