Class: Renogen::ChangeLog::Writer

Inherits:
Object
  • Object
show all
Defined in:
lib/renogen/change_log/writer.rb

Overview

Writes out the change log

Instance Method Summary collapse

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

Parameters:



12
13
14
15
16
# File 'lib/renogen/change_log/writer.rb', line 12

def write!(changelog)
  puts formatter.write_header(formatter.header(changelog))
  output_groups(changelog.groups)
  puts formatter.write_footer(changelog)
end