Class: Nicht::Stats
- Inherits:
-
Object
- Object
- Nicht::Stats
- Defined in:
- lib/nicht/stats.rb
Instance Method Summary collapse
-
#initialize(path, search = nil) ⇒ Stats
constructor
A new instance of Stats.
- #render ⇒ Object
Constructor Details
#initialize(path, search = nil) ⇒ Stats
Returns a new instance of Stats.
5 6 7 8 9 |
# File 'lib/nicht/stats.rb', line 5 def initialize(path, search = nil) @path = "#{path}/**/Gemfile" @search = search @stats = { per_project: {}, per_gem: {} } end |
Instance Method Details
#render ⇒ Object
11 12 13 14 15 16 |
# File 'lib/nicht/stats.rb', line 11 def render Dir[@path].each do |path| scan_project path end output end |