Class: GitStats::Generator
- Inherits:
-
Object
- Object
- GitStats::Generator
- Defined in:
- lib/git_stats/generator.rb
Instance Method Summary collapse
-
#initialize(options) {|_self| ... } ⇒ Generator
constructor
A new instance of Generator.
Constructor Details
permalink #initialize(options) {|_self| ... } ⇒ Generator
Returns a new instance of Generator.
7 8 9 10 11 12 13 14 15 |
# File 'lib/git_stats/generator.rb', line 7 def initialize() validate_repo_path([:path]) @repo = GitData::Repo.new() view_data = StatsView::ViewData.new(@repo) @view = StatsView::View.new(view_data, [:out_path]) yield self if block_given? end |