Method: YARD::CLI::Stats#run

Defined in:
lib/yard/cli/stats.rb

#run(*args) ⇒ void

This method returns an undefined value.

Runs the commandline utility, parsing arguments and generating output if set.

Parameters:

Since:

  • 0.6.0


33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/yard/cli/stats.rb', line 33

def run(*args)
  parse_arguments(*args)

  if parse
    if use_cache
      Registry.load!
      checksums = Registry.checksums.dup
    end
    YARD.parse(files, excluded)
    Registry.save(use_cache) if save_yardoc
  end

  print_statistics
  print_undocumented_objects
end