Class: Coco::Formatter

Inherits:
Object
  • Object
show all
Defined in:
lib/coco/formatter/formatter.rb

Overview

My childs will format coverages information. Kind of abstract class.

Instance Method Summary collapse

Constructor Details

#initialize(raw_coverages, uncovered) ⇒ Formatter

TODO:

I think covered is a better name than raw_coverages

raw_coverages - The Hash from Coverage.result. uncovered - An Array list of uncovered files.



12
13
14
15
# File 'lib/coco/formatter/formatter.rb', line 12

def initialize raw_coverages, uncovered
  @raw_coverages = raw_coverages
  @uncovered = uncovered
end

Instance Method Details

#formatObject



17
18
19
# File 'lib/coco/formatter/formatter.rb', line 17

def format
  "Implement me in child"
end