Class: Gity::GitLogParser
- Inherits:
-
Object
- Object
- Gity::GitLogParser
- Defined in:
- lib/gity/git_log.rb
Instance Method Summary collapse
- #entries ⇒ Object
-
#initialize(logs) ⇒ GitLogParser
constructor
A new instance of GitLogParser.
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
#entries ⇒ Object
14 15 16 17 18 19 |
# File 'lib/gity/git_log.rb', line 14 def entries if @_entries.nil? @_entries = [] end @_entries end |