Sha256: 2279f71db540c0f26a88404a6f79a2336fb700c065e3692dc171f275030fa19e

Contents?: true

Size: 477 Bytes

Versions: 2

Compression:

Stored size: 477 Bytes

Contents

require "erb"
require "rubycritic/report_generators/base_generator"
require "json"

module Rubycritic

  class OverviewGenerator < BaseGenerator
    TEMPLATE = erb_template("overview.html.erb")

    def initialize(turbulence_data)
      @turbulence_data = turbulence_data.to_json
    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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubycritic-0.0.12 lib/rubycritic/report_generators/overview_generator.rb
rubycritic-0.0.11 lib/rubycritic/report_generators/overview_generator.rb