Parent

Methods

Timetrap::Formatters::Csv

Attributes

output[R]

Public Class Methods

new(entries) click to toggle source
# File lib/timetrap/formatters/csv.rb, line 6
def initialize entries
  @output = entries.inject("start,end,note,sheet\n") do |out, e|
    next(out) unless e.end
    out << %"#{e.start.strftime(time_format)}","#{e.end.strftime(time_format)}","#{e.note}","#{e.sheet}"\n|
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.