Class: Reissue::Printer
- Inherits:
-
Object
- Object
- Reissue::Printer
- Defined in:
- lib/reissue/printer.rb
Instance Method Summary collapse
-
#initialize(changelog) ⇒ Printer
constructor
A new instance of Printer.
- #to_s ⇒ Object
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_s ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/reissue/printer.rb', line 10 def to_s = <<~MARKDOWN # #{@title} #{@preamble} #{@versions} MARKDOWN |