class MatrixFormatter::Formatters::HTMLFormatter
Public Instance Methods
header()
click to toggle source
# File lib/matrix_formatter/formatters/html_formatter.rb, line 12 def header """ <html> <head> <style type=\"text/css\"> td { padding: 7px 10px; vertical-align: top; text-align: left; border: 1px solid #ddd; } .passed { color: green; } .failed { color: red; } .pending { color: blue; } </style> </head> <body> """ end
start_dump()
click to toggle source
# File lib/matrix_formatter/formatters/html_formatter.rb, line 4 def start_dump renderer = Redcarpet::Markdown.new(Redcarpet::Render::HTML, :tables => true) @output.puts header @output.puts renderer.render(markdown) @output.puts footer end