class Unused::Reporter

Public Class Methods

call() click to toggle source
# File lib/unused/reporter.rb, line 8
def self.call
  reporter_class.new(
    Registry.instance_method_calls,
    Registry.class_method_calls,
    Registry.class_map
  ).report
end
reporter_class() click to toggle source
# File lib/unused/reporter.rb, line 16
def self.reporter_class
  case Unused.config.reporter
  when :csv
    Reporters::CSVReporter
  else
    Reporters::StdoutReporter
  end
end