Class: GemChangelogDiff::Formatters::Base
- Inherits:
-
Object
- Object
- GemChangelogDiff::Formatters::Base
- Defined in:
- lib/gem_changelog_diff/formatters/base.rb
Overview
Abstract base class for output formatters.
Instance Method Summary collapse
-
#format(_gem_reports) ⇒ String
Formats gem reports into a string.
-
#initialize(color: false) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(color: false) ⇒ Base
Returns a new instance of Base.
22 23 24 |
# File 'lib/gem_changelog_diff/formatters/base.rb', line 22 def initialize(color: false) @color = color end |
Instance Method Details
#format(_gem_reports) ⇒ String
Formats gem reports into a string.
29 30 31 |
# File 'lib/gem_changelog_diff/formatters/base.rb', line 29 def format(_gem_reports) raise NotImplementedError, "#{self.class}#format must be implemented" end |