Module: Yuslow
- Extended by:
- Yuslow
- Included in:
- Yuslow
- Defined in:
- lib/yuslow.rb,
lib/yuslow/investigation.rb,
lib/yuslow/stdout_printer.rb
Defined Under Namespace
Modules: StdoutPrinter
Classes: Investigation
Instance Method Summary
collapse
Instance Method Details
#investigate(debug: false, output: nil, max_depth: nil) ⇒ Object
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/yuslow.rb', line 8
def investigate(debug: false, output: nil, max_depth: nil)
raise 'Block expected' unless block_given?
investigation = Investigation.new debug: debug, printer: printer_from(output), max_depth: max_depth
investigation.start
result = yield
investigation.finish
investigation
result
end
|
#investigation(debug: false, output: nil, max_depth: nil) ⇒ Object
19
20
21
|
# File 'lib/yuslow.rb', line 19
def investigation(debug: false, output: nil, max_depth: nil)
Investigation.new debug: debug, printer: printer_from(output), max_depth: max_depth
end
|