Module: ActiveSpy::Spy::ClassMethods

Defined in:
lib/active_spy/spy/spy.rb

Overview

Class methods to be defined in classes that includes ActiveSpy::Spy

Instance Method Summary collapse

Instance Method Details

#watch_method(*methods) ⇒ Object

Set watchers for the method



35
36
37
38
39
# File 'lib/active_spy/spy/spy.rb', line 35

def watch_method(*methods)
  methods.each do |method|
    ActiveSpy::SpyList << { 'class' => name, 'method' => method }
  end
end