Class: MotionWiretap::WiretapChild
- Defined in:
- lib/motion-wiretap/all/wiretap.rb
Direct Known Subclasses
WiretapCombiner, WiretapFilter, WiretapMapper, WiretapReducer
Instance Method Summary collapse
-
#initialize(parent) ⇒ WiretapChild
constructor
A new instance of WiretapChild.
- #teardown ⇒ Object
Methods inherited from Wiretap
#and_then, #cancel!, #combine, #dealloc, #enqueue, #filter, #listen, #map, #on_error, #queue, #reduce, #trigger_changed, #trigger_changed_on, #trigger_completed, #trigger_completed_on, #trigger_error, #trigger_error_on
Constructor Details
#initialize(parent) ⇒ WiretapChild
Returns a new instance of WiretapChild.
323 324 325 326 327 |
# File 'lib/motion-wiretap/all/wiretap.rb', line 323 def initialize(parent) @parent = parent @parent.listen(self) super() end |
Instance Method Details
#teardown ⇒ Object
329 330 331 332 |
# File 'lib/motion-wiretap/all/wiretap.rb', line 329 def teardown @parent.cancel! super end |