Class: Renogen::ChangeLog::Writer
- Inherits:
-
Object
- Object
- Renogen::ChangeLog::Writer
- Defined in:
- lib/renogen/change_log/writer.rb
Overview
Writes out the change log
Instance Method Summary collapse
-
#initialize(formatter) ⇒ Writer
constructor
A new instance of Writer.
-
#write!(changelog) ⇒ Object
Writes out the change log.
Constructor Details
#initialize(formatter) ⇒ Writer
Returns a new instance of Writer.
5 6 7 |
# File 'lib/renogen/change_log/writer.rb', line 5 def initialize(formatter) @formatter = formatter end |
Instance Method Details
#write!(changelog) ⇒ Object
Writes out the change log
12 13 14 15 16 |
# File 'lib/renogen/change_log/writer.rb', line 12 def write!(changelog) puts formatter.write_header(changelog.header) output_groups(changelog.groups) puts formatter.(changelog) end |