Class: GrokCLI::Git::Log::Entry
- Inherits:
-
Object
- Object
- GrokCLI::Git::Log::Entry
- Includes:
- ERB::Util
- Defined in:
- lib/grok_cli/git/log.rb
Instance Method Summary collapse
-
#initialize(ticket:, commits:) ⇒ Entry
constructor
A new instance of Entry.
- #to_s ⇒ Object
Constructor Details
#initialize(ticket:, commits:) ⇒ Entry
Returns a new instance of Entry.
48 49 50 51 |
# File 'lib/grok_cli/git/log.rb', line 48 def initialize(ticket:, commits:) @ticket = ticket @commits = commits end |
Instance Method Details
#to_s ⇒ Object
53 54 55 56 57 58 59 60 |
# File 'lib/grok_cli/git/log.rb', line 53 def to_s ERB.new(<<~DOC #{ticket} #{commit_log} DOC ).result(binding) end |