Module: KGB

Defined in:
lib/kgb.rb,
lib/kgb/version.rb

Defined Under Namespace

Classes: Agent

Constant Summary collapse

VERSION =
"1.0.1"

Class Method Summary collapse

Class Method Details



14
15
16
# File 'lib/kgb.rb', line 14

def self.print_reports
  @agents.each { |agent| agent.report }
end

.spy_on(*classes) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/kgb.rb', line 5

def self.spy_on(*classes)
  @agents ||= []
  classes.each do |klass|
    @agents << Agent.new(klass)
  end

  nil
end