Class: Faml::Stats
- Inherits:
-
Object
- Object
- Faml::Stats
- Defined in:
- lib/faml/stats.rb
Defined Under Namespace
Classes: Info
Instance Method Summary collapse
-
#initialize(*paths) ⇒ Stats
constructor
A new instance of Stats.
- #report ⇒ Object
Constructor Details
#initialize(*paths) ⇒ Stats
Returns a new instance of Stats.
30 31 32 |
# File 'lib/faml/stats.rb', line 30 def initialize(*paths) @files = find_files(paths) end |
Instance Method Details
#report ⇒ Object
34 35 36 37 38 39 40 41 42 |
# File 'lib/faml/stats.rb', line 34 def report info = Info.new @files.each do |file| collect_info(info, file) end report_attribute_stats(info) report_ast_stats(info) end |