Class: Scripted::Formatters::Stats
- Includes:
- HumanStatus
- Defined in:
- lib/scripted/formatters/stats.rb
Instance Attribute Summary
Attributes inherited from Blank
Instance Method Summary collapse
Methods included from HumanStatus
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 |