Class: Faml::Stats

Inherits:
Object
  • Object
show all
Defined in:
lib/faml/stats.rb

Defined Under Namespace

Classes: Info

Instance Method Summary collapse

Constructor Details

#initialize(*paths) ⇒ Stats

Returns a new instance of Stats.



26
27
28
# File 'lib/faml/stats.rb', line 26

def initialize(*paths)
  @files = find_files(paths)
end

Instance Method Details

#report ⇒ Object



30
31
32
33
34
35
36
37
38
# File 'lib/faml/stats.rb', line 30

def report
  info = Info.new
  @files.each do |file|
    collect_info(info, file)
  end

  report_attribute_stats(info)
  report_ast_stats(info)
end