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.



28
29
30
# File 'lib/faml/stats.rb', line 28

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

Instance Method Details

#reportObject



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

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

  report_attribute_stats(info)
  report_ast_stats(info)
end