Sha256: 2466b2195ae8de5be744bc23bb9f071986e32daa9a8df6d09aaa73bde9296bea

Contents?: true

Size: 416 Bytes

Versions: 39

Compression:

Stored size: 416 Bytes

Contents

# frozen_string_literal: true

require_relative 'base_report'

module Reek
  module Report
    #
    # Saves the report as a HTML file
    #
    # @public
    #
    class HTMLReport < BaseReport
      require 'erb'

      # @public
      def show
        template_path = Pathname.new("#{__dir__}/html_report/html_report.html.erb")
        puts ERB.new(template_path.read).result(binding)
      end
    end
  end
end

Version data entries

39 entries across 37 versions & 2 rubygems

Version Path
reek-6.4.0 lib/reek/report/html_report.rb
reek-6.3.0 lib/reek/report/html_report.rb
reek-6.2.0 lib/reek/report/html_report.rb
reek-6.1.4 lib/reek/report/html_report.rb
reek-6.1.3 lib/reek/report/html_report.rb
reek-6.1.2 lib/reek/report/html_report.rb
reek-6.1.1 lib/reek/report/html_report.rb
reek-6.1.0 lib/reek/report/html_report.rb
reek-6.0.6 lib/reek/report/html_report.rb
reek-6.0.5 lib/reek/report/html_report.rb
reek-6.0.4 lib/reek/report/html_report.rb
reek-6.0.3 lib/reek/report/html_report.rb
reek-6.0.2 lib/reek/report/html_report.rb
reek-6.0.1 lib/reek/report/html_report.rb
reek-6.0.0 lib/reek/report/html_report.rb
reek-5.6.0 lib/reek/report/html_report.rb
reek-5.5.0 lib/reek/report/html_report.rb
reek-5.4.1 lib/reek/report/html_report.rb
reek-5.4.0 lib/reek/report/html_report.rb
reek-5.3.2 lib/reek/report/html_report.rb