Class: Plumbing::Pipe::Junction

Inherits:
Plumbing::Pipe show all
Defined in:
lib/plumbing/pipe/junction.rb

Overview

A pipe that filters events from a source pipe

Instance Method Summary collapse

Methods inherited from Plumbing::Pipe

#add_observer, #is_observer?, #notify, #remove_observer, #shutdown

Methods included from Actor

#in_context?, included, #safely, #stop, timeout, transporter

Constructor Details

#initialize(*sources) ⇒ Junction

Chain multiple sources to this pipe

Parameters:



6
7
8
9
# File 'lib/plumbing/pipe/junction.rb', line 6

def initialize *sources
  super()
  sources.each { |source| add(source) }
end