Sha256: 378d72f2fc494c651fda089b2cc86994d4883d0e10d704e72da4d52e9f2331c0

Contents?: true

Size: 510 Bytes

Versions: 3

Compression:

Stored size: 510 Bytes

Contents

require "rubycritic/report_generators/base"
require "rubycritic/turbulence"

module Rubycritic
  module Generator

    class Overview < Base
      TEMPLATE = erb_template("overview.html.erb")

      def initialize(analysed_files)
        @turbulence_data = Turbulence.data(analysed_files)
      end

      def file_name
        "overview.html"
      end

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

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubycritic-1.0.0 lib/rubycritic/report_generators/overview.rb
rubycritic-0.0.16 lib/rubycritic/report_generators/overview.rb
rubycritic-0.0.15 lib/rubycritic/report_generators/overview.rb