Class: MotionWiretap::WiretapTarget

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

Direct Known Subclasses

WiretapKvo, WiretapProc

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Wiretap

#and_then, #cancel!, #combine, #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(target, &block) ⇒ WiretapTarget

Returns a new instance of WiretapTarget.



184
185
186
187
# File 'lib/motion-wiretap/all/wiretap.rb', line 184

def initialize(target, &block)
  @target = target
  super(&block)
end

Instance Attribute Details

#targetObject (readonly)

Returns the value of attribute target.



182
183
184
# File 'lib/motion-wiretap/all/wiretap.rb', line 182

def target
  @target
end

Instance Method Details

#teardownObject



189
190
191
192
# File 'lib/motion-wiretap/all/wiretap.rb', line 189

def teardown
  @target = nil
  super
end