module ActiveSpy::Spy::ClassMethods

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

Public Instance Methods

watch_method(*methods) click to toggle source

Set watchers for the method

# 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