Class: HTMLProofer::Reporter

Inherits:
Object
  • Object
show all
Includes:
Utils
Defined in:
lib/html_proofer/reporter.rb,
lib/html_proofer/reporter/terminal.rb

Direct Known Subclasses

Terminal

Defined Under Namespace

Classes: Terminal

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utils

#blank?, #create_nokogiri, #pluralize

Constructor Details

#initialize(logger: nil) ⇒ Reporter

Returns a new instance of Reporter.



9
10
11
# File 'lib/html_proofer/reporter.rb', line 9

def initialize(logger: nil)
  @logger = logger
end

Instance Attribute Details

#failuresObject

Returns the value of attribute failures.



7
8
9
# File 'lib/html_proofer/reporter.rb', line 7

def failures
  @failures
end

Instance Method Details

#reportObject

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/html_proofer/reporter.rb', line 19

def report
  raise NotImplementedError, "HTMLProofer::Reporter subclasses must implement #report"
end