Class: Diecut::ReportBuilders::Exceptions

Inherits:
Diecut::ReportBuilder show all
Defined in:
lib/diecut/report-builders/exception-report.rb

Instance Attribute Summary

Attributes inherited from Diecut::ReportBuilder

#mill

Instance Method Summary collapse

Methods inherited from Diecut::ReportBuilder

all_kinds, #build_report, #each_default, #each_option, #each_plugin, #each_template, #fail_advice, #go, #initialize, #other_summary, #pass_advice, #pass_summary, register, #report, #report_status, #review, #strict_sequence?, #unindent

Constructor Details

This class inherits a constructor from Diecut::ReportBuilder

Instance Method Details

#add(*args) ⇒ Object



17
18
19
# File 'lib/diecut/report-builders/exception-report.rb', line 17

def add(*args)
  report.add(*args)
end

#collectObject



14
15
# File 'lib/diecut/report-builders/exception-report.rb', line 14

def collect
end

#fail_summaryObject



21
22
23
# File 'lib/diecut/report-builders/exception-report.rb', line 21

def fail_summary
  "Exceptions were raised during the kind definition process"
end

#other_adviceObject



25
26
27
28
29
# File 'lib/diecut/report-builders/exception-report.rb', line 25

def other_advice
  <<-EOA
  Exceptions were raised while defining plugins for generation. Those need to be fixed.
  EOA
end

#report_fieldsObject



10
11
12
# File 'lib/diecut/report-builders/exception-report.rb', line 10

def report_fields
  ["Exception class", "message", "source line"]
end

#report_nameObject



6
7
8
# File 'lib/diecut/report-builders/exception-report.rb', line 6

def report_name
  "Exceptions raised during definition"
end