Method: YARD::Logger#capture
- Defined in:
- lib/yard/logging.rb
#capture(msg, nontty_log = :debug) { ... } ⇒ void
TODO:
Implement capture storage for reporting of benchmarks
This method returns an undefined value.
Captures the duration of a block of code for benchmark analysis. Also calls #progress on the message to display it to the user.
80 81 82 83 84 85 |
# File 'lib/yard/logging.rb', line 80 def capture(msg, nontty_log = :debug) progress(msg, nontty_log) yield ensure clear_progress end |