Class: Lazylead::Svn::Commits

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/lazylead/task/svn/svn.rb

Overview

SVN commits built from command-line stdout (OS#run).

Instance Method Summary collapse

Constructor Details

#initialize(stdout) ⇒ Commits

TODO:

#/DEV Find a way how to avoid @all initialization directly in constructor. There should be a way how to make lazy initialization of @all with ‘forwardable’.

Returns a new instance of Commits.



102
103
104
# File 'lib/lazylead/task/svn/svn.rb', line 102

def initialize(stdout)
  @all = stdout.split("-" * 72).reject(&:blank?).reverse.map { |e| Commit.new(e) }
end