Class: Gity::GitLogParser

Inherits:
Object
  • Object
show all
Defined in:
lib/gity/git_log.rb

Instance Method Summary collapse

Constructor Details

#initialize(logs) ⇒ GitLogParser

Returns a new instance of GitLogParser.



9
10
11
12
# File 'lib/gity/git_log.rb', line 9

def initialize(logs)
  @logs = logs
  parse(logs)
end

Instance Method Details

#entriesObject



14
15
16
17
18
19
# File 'lib/gity/git_log.rb', line 14

def entries
  if @_entries.nil?
    @_entries = []
  end
  @_entries
end