Class: Pipeline::TextReporter

Inherits:
BaseReporter show all
Defined in:
lib/pipeline/reporters/text_reporter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseReporter

#run_report

Constructor Details

#initializeTextReporter

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

#formatObject

Returns the value of attribute format.



8
9
10
# File 'lib/pipeline/reporters/text_reporter.rb', line 8

def format
  @format
end

#nameObject

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