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.



30
31
32
# File 'lib/faml/stats.rb', line 30

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

Instance Method Details

#reportObject



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