Sha256: 304c6369d3938f5ca10006e7724c5c055c3d35e5cd1eedec1f92ec1d61f0d823

Contents?: true

Size: 465 Bytes

Versions: 5

Compression:

Stored size: 465 Bytes

Contents

require "rubycritic/report_generators/base"

module Rubycritic
  module Generator

    class CodeIndex < Base
      TEMPLATE = erb_template("code_index.html.erb")

      def initialize(analysed_files)
        @analysed_files = analysed_files
      end

      def file_name
        "code_index.html"
      end

      def render
        index_body = TEMPLATE.result(get_binding)
        LAYOUT_TEMPLATE.result(get_binding { index_body })
      end
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubycritic-1.0.2 lib/rubycritic/report_generators/code_index.rb
rubycritic-1.0.1 lib/rubycritic/report_generators/code_index.rb
rubycritic-1.0.0 lib/rubycritic/report_generators/code_index.rb
rubycritic-0.0.16 lib/rubycritic/report_generators/code_index.rb
rubycritic-0.0.15 lib/rubycritic/report_generators/code_index.rb