Class: MotionWiretap::WiretapChild
- Defined in:
- lib/motion-wiretap/all/wiretap.rb
Direct Known Subclasses
WiretapCombiner, WiretapFilter, WiretapMapper, WiretapReducer
Instance Attribute Summary
Attributes inherited from Wiretap
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.
336 337 338 339 340 341 |
# File 'lib/motion-wiretap/all/wiretap.rb', line 336 def initialize(parent) @parent = parent @parent.listen(self) @value = @parent.value super() end |
Instance Method Details
#teardown ⇒ Object
343 344 345 346 |
# File 'lib/motion-wiretap/all/wiretap.rb', line 343 def teardown @parent.cancel! super end |