Class: Coco::Formatter
- Inherits:
-
Object
- Object
- Coco::Formatter
- Defined in:
- lib/coco/formatter/formatter.rb
Overview
My childs will format coverages information. Kind of abstract class.
Direct Known Subclasses
Instance Method Summary collapse
- #format ⇒ Object
-
#initialize(raw_coverages, uncovered) ⇒ Formatter
constructor
raw_coverages - The Hash from Coverage.result.
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
#format ⇒ Object
17 18 19 |
# File 'lib/coco/formatter/formatter.rb', line 17 def format "Implement me in child" end |