Class: GitPissed::CSV
- Defined in:
- lib/git_pissed/formats/csv.rb
Instance Attribute Summary
Attributes inherited from Format
Instance Method Summary collapse
Methods inherited from Format
Instance Method Details
#formatted ⇒ Object
7 8 9 |
# File 'lib/git_pissed/formats/csv.rb', line 7 def formatted table.join "\n" end |
#name ⇒ Object
3 4 5 |
# File 'lib/git_pissed/formats/csv.rb', line 3 def name 'CSV' end |
#table ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/git_pissed/formats/csv.rb', line 11 def table [["date", *.words].join(',')].tap do |table| words_by_date.each do |date, words| table << [date, words.values_at(*.words)].join(',') end end end |