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(={}, &block) exec_hooks([:before]) yield exec_hooks([:after]) end |