Class: Lazylead::Svn::Commits
- Inherits:
-
Object
- Object
- Lazylead::Svn::Commits
- 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
-
#initialize(stdout) ⇒ Commits
constructor
A new instance of Commits.
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 |