class Milestoner::Presenters::Commit
Wraps the Git Kit Commit
for presentation purposes.
Public Class Methods
new(record, container: Container)
click to toggle source
# File lib/milestoner/presenters/commit.rb, line 14 def initialize record, container: Container @record = record @container = container end
Public Instance Methods
bullet()
click to toggle source
# File lib/milestoner/presenters/commit.rb, line 25 def bullet case container[:configuration].documentation_format when "md" then "- " when "adoc" then "* " else "" end end
line_item(delimiter: " - ")
click to toggle source
# File lib/milestoner/presenters/commit.rb, line 19 def line_item(delimiter: " - ") = "#{bullet}#{subject}#{delimiter}#{author_name}" private attr_reader :record, :container def bullet case container[:configuration].documentation_format when "md" then "- " when "adoc" then "* " else "" end end end