Class: Pipeline::TextReporter
- Inherits:
-
BaseReporter
- Object
- BaseReporter
- Pipeline::TextReporter
- Defined in:
- lib/pipeline/reporters/text_reporter.rb
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 ⇒ TextReporter
constructor
A new instance of TextReporter.
- #out(finding) ⇒ Object
Methods inherited from BaseReporter
Constructor Details
#initialize ⇒ TextReporter
Returns a new instance of TextReporter.
10 11 12 13 |
# File 'lib/pipeline/reporters/text_reporter.rb', line 10 def initialize() @name = "TextReporter" @format = :to_s end |
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
8 9 10 |
# File 'lib/pipeline/reporters/text_reporter.rb', line 8 def format @format end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/pipeline/reporters/text_reporter.rb', line 8 def name @name end |
Instance Method Details
#out(finding) ⇒ Object
15 16 17 |
# File 'lib/pipeline/reporters/text_reporter.rb', line 15 def out(finding) finding.to_string << "\n" end |