Sha256: 53909ffa144c801a3bc1a7aaeb53e2e1727d86d2cd3f2057babf01c3b584dd73

Contents?: true

Size: 415 Bytes

Versions: 9

Compression:

Stored size: 415 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

9 entries across 9 versions & 1 rubygems

Version Path
reek-4.6.1 lib/reek/report/html_report.rb
reek-4.6.0 lib/reek/report/html_report.rb
reek-4.5.6 lib/reek/report/html_report.rb
reek-4.5.5 lib/reek/report/html_report.rb
reek-4.5.4 lib/reek/report/html_report.rb
reek-4.5.3 lib/reek/report/html_report.rb
reek-4.5.2 lib/reek/report/html_report.rb
reek-4.5.1 lib/reek/report/html_report.rb
reek-4.5.0 lib/reek/report/html_report.rb