Parent

KASPAuditor::KeyTracker::Cache

The Cache holds the data for each of the Status levels. It is dynamically generated from the Status levels. The dynamic methods created here will not show up in RDoc, but consist of methods to add, remove and find keys in different states. Timestamps are also held here.

Public Class Methods

new() click to toggle source
# File ../../auditor/lib/kasp_auditor/key_tracker.rb, line 106
def initialize
  Status.strings.each {|s| eval "@#{s.downcase} = {}"}
end

Public Instance Methods

include_key?(key) click to toggle source
# File ../../auditor/lib/kasp_auditor/key_tracker.rb, line 102
def include_key?(key)
  Status.strings.each {|s| eval "return true if include_#{s.downcase}_key?(key)"}
  return false
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.