Sha256: 29c8788db40b098d8e59e165a601786934b6f5ef968cd7b13aa83caa0317b1ab
Contents?: true
Size: 375 Bytes
Versions: 3
Compression:
Stored size: 375 Bytes
Contents
# frozen_string_literal: true require 'erb' module Terracop module Formatters # Generates a single page HTML report listing all the offenses. # Ideal for human readable reports. class Html def generate(resources) template = ERB.new(File.read(File.join(__dir__, './report.html.erb'))) template.result(binding) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
terracop-0.2.0 | lib/terracop/formatters/html.rb |
terracop-0.1.1 | lib/terracop/formatters/html.rb |
terracop-0.1.0 | lib/terracop/formatters/html.rb |