Module: ObjectTracer::Trackable

Defined in:
lib/object_tracer/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/object_tracer/trackable.rb', line 11

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

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



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

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

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



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

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

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



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

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

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



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

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