module Unused

Constants

VERSION

Public Class Methods

config() click to toggle source
# File lib/unused.rb, line 25
def self.config
  Configuration.instance
end
configure() { |config| ... } click to toggle source
# File lib/unused.rb, line 29
def self.configure
  yield config
end
report() click to toggle source
# File lib/unused.rb, line 33
def self.report
  Reporter.call
end
start() click to toggle source
# File lib/unused.rb, line 12
def self.start
  MethodAliasListener.instance.enable
  DefinitionListener.instance.enable
  CallListener.instance.enable
  at_exit { report } if config.report_at_exit
end
stop() click to toggle source
# File lib/unused.rb, line 19
def self.stop
  MethodAliasListener.instance.disable
  DefinitionListener.instance.disable
  CallListener.instance.disable
end