Class: MotionWiretap::WiretapChild

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

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.



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

#teardownObject



329
330
331
332
# File 'lib/motion-wiretap/all/wiretap.rb', line 329

def teardown
  @parent.cancel!
  super
end