Sha256: e9b6f4e59175f43dc4345bb3c807dc6519cfa952a4b0e7ab2c45c82db2c6445c
Contents?: true
Size: 523 Bytes
Versions: 2
Compression:
Stored size: 523 Bytes
Contents
# -*- encoding: utf-8 -*- module Coco # Public: I write the index.html class HtmlIndexWriter # Public: Initialize a new HtmlIndexWriter object. # # index - A String HTML document. def initialize(index) @index = index @dir = HtmlDirectory.new.coverage_dir end # Public: Write the index file in the right place. # # Returns nothing. def write if File.exist?(@dir) FileWriter.write File.join(@dir, 'index.html'), @index end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
coco-0.12.0 | lib/coco/writer/html_index_writer.rb |
coco-0.11.0 | lib/coco/writer/html_index_writer.rb |