Class: SimpleCovTextFormatter::ResultFormatter
- Inherits:
-
Object
- Object
- SimpleCovTextFormatter::ResultFormatter
- Defined in:
- lib/simplecov_text_formatter/result_formatter.rb
Instance Method Summary collapse
- #format ⇒ Object
-
#initialize(result) ⇒ ResultFormatter
constructor
A new instance of ResultFormatter.
Constructor Details
#initialize(result) ⇒ ResultFormatter
Returns a new instance of ResultFormatter.
3 4 5 |
# File 'lib/simplecov_text_formatter/result_formatter.rb', line 3 def initialize(result) @result = result end |
Instance Method Details
#format ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/simplecov_text_formatter/result_formatter.rb', line 7 def format formatted_result = [] @result.files.each do |source_file| = format_source_file(source_file) formatted_result += if end formatted_result end |