Sha256: 2f45d25c74c634bdd9b38e1fcc7a982c99d7da5ff8f0f908bf1fce68fe0ef0f1
Contents?: true
Size: 550 Bytes
Versions: 1
Compression:
Stored size: 550 Bytes
Contents
require 'haml' module Cucumber module Blanket class ReportGenerator TEMPLATE_DIR = File.join(File.dirname(__FILE__), '../../../templates') def initialize(mode, coverage_data) case mode when :html template = File.join(TEMPLATE_DIR, 'html_report.html.haml') @engine = Haml::Engine.new(File.read(template)) else raise "Unsupported report #{mode}" end @data = coverage_data end def render @engine.render(self) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cucumber-blanket-0.3.0 | lib/cucumber/blanket/report_generator.rb |