Sha256: 07f7cf23dcaf9792dc6d1403ef0fd3fd6d1b5e939632c7c5c39a1254a8352e25

Contents?: true

Size: 578 Bytes

Versions: 4

Compression:

Stored size: 578 Bytes

Contents

require "rubycritic/generators/html/base"
require "rubycritic/generators/html/turbulence"

module Rubycritic
  module Generator
    module Html

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

        def initialize(analysed_modules)
          @turbulence_data = Turbulence.data(analysed_modules)
        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
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubycritic-2.2.0 lib/rubycritic/generators/html/overview.rb
rubycritic-2.1.0 lib/rubycritic/generators/html/overview.rb
rubycritic-2.0.0 lib/rubycritic/generators/html/overview.rb
rubycritic-1.4.0 lib/rubycritic/generators/html/overview.rb