Class: Scripted::Formatters::Stats

Inherits:
Blank
  • Object
show all
Includes:
HumanStatus
Defined in:
lib/scripted/formatters/stats.rb

Instance Attribute Summary

Attributes inherited from Blank

#configuration, #raw_out

Instance Method Summary collapse

Methods included from HumanStatus

#human_status, #status_code

Methods inherited from Blank

#close, #done, #each_char, #exception, #execute, #halted, #initialize, #start

Constructor Details

This class inherits a constructor from Scripted::Formatters::Blank

Instance Method Details

#stop(commands, runner) ⇒ Object



17
18
19
20
21
22
23
# File 'lib/scripted/formatters/stats.rb', line 17

def stop(commands, runner)
  if out.is_a?(File)
    CSV.open(out.path, "wb", &csv(commands))
  else
    puts CSV.generate(&csv(commands))
  end
end