Method: ActiveSpy::Spy::ClassMethods#watch_method

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

#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