Module: ObjectTracer::Trackable
- Defined in:
- lib/object_tracer/trackable.rb
Defined Under Namespace
Classes: AsyncCollectionProxy, CollectionProxy
Instance Method Summary collapse
- #tap_assoc!(object, options = {}, &block) ⇒ Object
- #tap_init!(object, options = {}, &block) ⇒ Object
- #tap_mutation!(object, options = {}, &block) ⇒ Object
- #tap_on!(object, options = {}, &block) ⇒ Object
- #tap_passed!(object, options = {}, &block) ⇒ Object
Instance Method Details
#tap_assoc!(object, options = {}, &block) ⇒ Object
11 12 13 |
# File 'lib/object_tracer/trackable.rb', line 11 def tap_assoc!(object, = {}, &block) ObjectTracer::Trackers::AssociactionCallTracker.new(, &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, = {}, &block) ObjectTracer::Trackers::InitializationTracker.new(, &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, = {}, &block) ObjectTracer::Trackers::MutationTracker.new(, &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, = {}, &block) ObjectTracer::Trackers::MethodCallTracker.new(, &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, = {}, &block) ObjectTracer::Trackers::PassedTracker.new(, &block).track(object) end |