module Kojak::Central

Internal: An extension with central utilities. This module extends top level Kojak module, don't use it directly.

Public Instance Methods

investigate!() click to toggle source

Internal: Enables investigation of all registered classes.

# File lib/kojak/central.rb, line 50
def investigate!
  @@mtx.synchronize { @@investigated.values.each(&:investigate!) }
end
investigated() click to toggle source

Internal: List of classes marked for investigation.

# File lib/kojak/central.rb, line 26
def investigated
  @@mtx.synchronize { @@investigated.values }
end
mark_for_investigation(cls) click to toggle source

Internal: Marks given class as investigated.

cls - The Class to register.

Returns list of investigated classes.

# File lib/kojak/central.rb, line 35
def mark_for_investigation(cls)
  @@mtx.synchronize { @@investigated[cls.object_id] = cls }
end
print(caller) click to toggle source

Internal: Prints investigation results and writes to slow log.

caller - The Caller to print.

Returns nothing.

slowlog() click to toggle source

Internal: Returns slow log array.

# File lib/kojak/central.rb, line 21
def slowlog
  @@mtx.synchronize { @@log }
end