Sha256: 2988cc9cb8970043d3a9df84711908d2a7c275585f07dbc82dd8457e53788005

Contents?: true

Size: 339 Bytes

Versions: 10

Compression:

Stored size: 339 Bytes

Contents

# -*- encoding: utf-8 -*-

module Coco
  
  # I write the index.html
  class HtmlIndexWriter
  
    def initialize index
      @index = index
      @dir = HtmlDirectory.new.coverage_dir
    end
    
    def write
      if File.exist?(@dir)
        FileWriter.write File.join(@dir, 'index.html'), @index
      end
    end
    
  end
  
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
coco-0.10.0 lib/coco/writer/html_index_writer.rb
coco-0.9 lib/coco/writer/html_index_writer.rb
coco-0.8 lib/coco/writer/html_index_writer.rb
coco-0.7.1 lib/coco/writer/html_index_writer.rb
coco-0.7 lib/coco/writer/html_index_writer.rb
coco-0.6 lib/coco/writer/html_index_writer.rb
coco-0.5.1 lib/coco/writer/html_index_writer.rb
coco-0.5 lib/coco/writer/html_index_writer.rb
coco-0.4.2 lib/coco/writer/html_index_writer.rb
coco-0.4.1 lib/coco/writer/html_index_writer.rb