Module: TappingDevice::Trackable

Defined in:
lib/tapping_device/trackable.rb

Defined Under Namespace

Classes: AsyncCollectionProxy, CollectionProxy

Instance Method Summary collapse

Instance Method Details

#tap_assoc!(object, options = {}, &block) ⇒ Object



11
12
13
# File 'lib/tapping_device/trackable.rb', line 11

def tap_assoc!(object, options = {}, &block)
  TappingDevice::Trackers::AssociactionCallTracker.new(options, &block).track(object)
end

#tap_init!(object, options = {}, &block) ⇒ Object



3
4
5
# File 'lib/tapping_device/trackable.rb', line 3

def tap_init!(object, options = {}, &block)
  TappingDevice::Trackers::InitializationTracker.new(options, &block).track(object)
end

#tap_mutation!(object, options = {}, &block) ⇒ Object



19
20
21
# File 'lib/tapping_device/trackable.rb', line 19

def tap_mutation!(object, options = {}, &block)
  TappingDevice::Trackers::MutationTracker.new(options, &block).track(object)
end

#tap_on!(object, options = {}, &block) ⇒ Object



15
16
17
# File 'lib/tapping_device/trackable.rb', line 15

def tap_on!(object, options = {}, &block)
  TappingDevice::Trackers::MethodCallTracker.new(options, &block).track(object)
end

#tap_passed!(object, options = {}, &block) ⇒ Object



7
8
9
# File 'lib/tapping_device/trackable.rb', line 7

def tap_passed!(object, options = {}, &block)
  TappingDevice::Trackers::PassedTracker.new(options, &block).track(object)
end