class SparkleAppcast::ReleaseNote
Attributes
path[R]
Public Class Methods
markdown(text)
click to toggle source
# File lib/sparkle_appcast/release_note.rb, line 5 def self.markdown(text) Kramdown::Document.new(text, auto_ids: false).to_html end
new(path)
click to toggle source
# File lib/sparkle_appcast/release_note.rb, line 11 def initialize(path) @path = path end
Public Instance Methods
html(context = {})
click to toggle source
# File lib/sparkle_appcast/release_note.rb, line 15 def html(context = {}) self.class.markdown(Mustache.render(text, context)) end
text()
click to toggle source
# File lib/sparkle_appcast/release_note.rb, line 19 def text @text ||= File.read(path) end