class GitPissed::HTML

Public Instance Methods

csv() click to toggle source
# File lib/git_pissed/formats/html.rb, line 13
def csv
  CSV.new(words_by_date, options).
    table.
    map { |r| "'#{r.strip}\\n'" }.
    join('+')
end
formatted() click to toggle source
# File lib/git_pissed/formats/html.rb, line 7
def formatted
  File.read(
    File.expand_path('../templates/index.html', __FILE__)
  ).gsub("%CSV%", csv).gsub("%PATH%", File.basename(Dir.pwd))
end
name() click to toggle source
# File lib/git_pissed/formats/html.rb, line 3
def name
  'HTML'
end