Module: Yuslow

Extended by:
Yuslow
Included in:
Yuslow
Defined in:
lib/yuslow.rb

Instance Method Summary collapse

Instance Method Details

#investigation(debug: false, output: nil) ⇒ Object



18
19
20
# File 'lib/yuslow.rb', line 18

def investigation(debug: false, output: nil)
  Investigation.new debug: debug, printer: printer_from(output)
end

#run(debug: false, output: nil) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/yuslow.rb', line 8

def run(debug: false, output: nil)
  raise 'Block expected' unless block_given?

  investigation = Investigation.new debug: debug, printer: printer_from(output)
  investigation.start
  yield
  investigation.finish
  investigation
end