class Rewire::TrunkEmitter

Public Class Methods

new(pipe, next_emitter) click to toggle source
# File lib/rewire/emitter.rb, line 27
def initialize(pipe, next_emitter)
  @pipe, @next_emitter = pipe, next_emitter
end

Public Instance Methods

<<(pack) click to toggle source
# File lib/rewire/emitter.rb, line 35
def <<(pack)
  @pipe.process(@next_emitter, pack)
end
|(pipe) click to toggle source
# File lib/rewire/emitter.rb, line 31
def |(pipe)
  Emitter.new(@pipe, @next_emitter | pipe)
end