Class: MotionWiretap::WiretapChild

Inherits:
Wiretap
  • Object
show all
Defined in:
lib/motion-wiretap/all/wiretap.rb

Instance Attribute Summary

Attributes inherited from Wiretap

#value

Instance Method Summary collapse

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

#teardownObject



343
344
345
346
# File 'lib/motion-wiretap/all/wiretap.rb', line 343

def teardown
  @parent.cancel!
  super
end