Class: CommitFormatter
- Inherits:
-
Object
- Object
- CommitFormatter
- Defined in:
- lib/changelogger/commit_formatter.rb
Instance Method Summary collapse
Instance Method Details
#format(commit) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/changelogger/commit_formatter.rb', line 4 def format(commit) " - " + commit.committed_date.strftime("%Y/%m/%d: ") + commit..split(/\n/).first + " (" + commit..name + ")" end |