You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: html_reporter.rb
    path of file: ./repos/attractor/lib/attractor/reporters
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Attractor
  # HTML reporter
  class HtmlReporter < BaseReporter
    def report
      super

      puts "Generating an HTML report"
      @serve_static = true

      FileUtils.mkdir_p "./attractor_output"
      FileUtils.mkdir_p "./attractor_output/stylesheets"
      FileUtils.mkdir_p "./attractor_output/images"
      FileUtils.mkdir_p "./attractor_output/javascripts"

      File.write("./attractor_output/images/attractor_logo.svg", logo)
      File.write("./attractor_output/images/attractor_favicon.png", favicon)
      File.write("./attractor_output/stylesheets/main.css", css)
      File.write("./attractor_output/javascripts/index.pack.js", javascript_pack)


    
    def report
      super

      puts "Generating an HTML report"
      @serve_static = true

      FileUtils.mkdir_p "./attractor_output"
      FileUtils.mkdir_p "./attractor_output/stylesheets"
      FileUtils.mkdir_p "./attractor_output/images"
      FileUtils.mkdir_p "./attractor_output/javascripts"

      File.write("./attractor_output/images/attractor_logo.svg", logo)
      File.write("./attractor_output/images/attractor_favicon.png", favicon)
      File.write("./attractor_output/stylesheets/main.css", css)
      File.write("./attractor_output/javascripts/index.pack.js", javascript_pack)

      if @calculators.size > 1
        @calculators.each do |calc|
          @short_type = calc.first
          suggester = Suggester.new(values(type: @short_type))
          @suggestions = suggester.suggest

          File.write("./attractor_output/javascripts/index.#{@short_type}.js", javascript)
          File.write("./attractor_output/index.#{@short_type}.html", render)
          puts "Generated HTML report at #{File.expand_path "./attractor_output/"}/index.#{@short_type}.html"
        end

        if @open_browser
          Launchy.open(File.expand_path("./attractor_output/index.#{@calculators.first.first}.html"))
          puts "Opening browser window..."
        end