Method: Coverband::Utils::HTMLFormatter#initialize

Defined in:
lib/coverband/utils/html_formatter.rb

#initialize(report, options = {}) ⇒ HTMLFormatter

Returns a new instance of HTMLFormatter.



18
19
20
21
22
23
24
# File 'lib/coverband/utils/html_formatter.rb', line 18

def initialize(report, options = {})
  @notice = options.fetch(:notice, nil)
  @base_path = options.fetch(:base_path, "./")
  @tracker = options.fetch(:tracker, nil)
  @page = options.fetch(:page, nil)
  @coverage_result = Coverband::Utils::Results.new(report) if report
end