Class: Glue::BaseReporter
- Inherits:
-
Object
- Object
- Glue::BaseReporter
- Defined in:
- lib/glue/reporters/base_reporter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize ⇒ BaseReporter
constructor
A new instance of BaseReporter.
- #out(finding) ⇒ Object
- #run_report(tracker) ⇒ Object
Constructor Details
#initialize ⇒ BaseReporter
Returns a new instance of BaseReporter.
6 7 |
# File 'lib/glue/reporters/base_reporter.rb', line 6 def initialize() end |
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
4 5 6 |
# File 'lib/glue/reporters/base_reporter.rb', line 4 def format @format end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/glue/reporters/base_reporter.rb', line 4 def name @name end |
Instance Method Details
#out(finding) ⇒ Object
18 19 |
# File 'lib/glue/reporters/base_reporter.rb', line 18 def out(finding) end |
#run_report(tracker) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/glue/reporters/base_reporter.rb', line 9 def run_report(tracker) Glue.notify "Running base reoprt..." output = "" tracker.findings.each do |finding| output += out(finding) end output end |