Class: Reissue::Printer

Inherits:
Object
  • Object
show all
Defined in:
lib/reissue/printer.rb

Instance Method Summary collapse

Constructor Details

#initialize(changelog) ⇒ Printer

Returns a new instance of Printer.



3
4
5
6
7
8
# File 'lib/reissue/printer.rb', line 3

def initialize(changelog)
  @changelog = changelog
  @title = @changelog["title"] || "Changelog"
  @preamble = @changelog["preamble"] || "All project changes are documented in this file."
  @versions = versions
end

Instance Method Details

#to_sObject



10
11
12
13
14
15
16
# File 'lib/reissue/printer.rb', line 10

def to_s = <<~MARKDOWN
  # #{@title}

  #{@preamble}

  #{@versions}
MARKDOWN