Class: MotionWiretap::WiretapCombiner
- Inherits:
-
WiretapChild
- Object
- Wiretap
- WiretapChild
- MotionWiretap::WiretapCombiner
- Defined in:
- lib/motion-wiretap/all/wiretap.rb
Instance Method Summary collapse
-
#initialize(parent, combiner) ⇒ WiretapCombiner
constructor
A new instance of WiretapCombiner.
-
#trigger_changed(*values) ⇒ Object
passes the values through the combiner before passing up to the parent implementation.
Methods inherited from WiretapChild
Methods inherited from Wiretap
#and_then, #cancel!, #combine, #dealloc, #enqueue, #filter, #listen, #map, #on_error, #queue, #reduce, #teardown, #trigger_changed_on, #trigger_completed, #trigger_completed_on, #trigger_error, #trigger_error_on
Constructor Details
#initialize(parent, combiner) ⇒ WiretapCombiner
Returns a new instance of WiretapCombiner.
355 356 357 358 359 |
# File 'lib/motion-wiretap/all/wiretap.rb', line 355 def initialize(parent, combiner) @combiner = combiner super(parent) end |
Instance Method Details
#trigger_changed(*values) ⇒ Object
passes the values through the combiner before passing up to the parent implementation
363 364 365 |
# File 'lib/motion-wiretap/all/wiretap.rb', line 363 def trigger_changed(*values) super(@combiner.call(*values)) end |