Class: MotionWiretap::WiretapTarget
- Defined in:
- lib/motion-wiretap/all/wiretap.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(target, &block) ⇒ WiretapTarget
constructor
A new instance of WiretapTarget.
- #teardown ⇒ Object
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
#target ⇒ Object (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
#teardown ⇒ Object
189 190 191 192 |
# File 'lib/motion-wiretap/all/wiretap.rb', line 189 def teardown @target = nil super end |