Class: Fluent::Compat::CopyOutputChain

Inherits:
OutputChain show all
Defined in:
lib/fluent/compat/output_chain.rb

Instance Method Summary collapse

Methods inherited from OutputChain

#initialize

Constructor Details

This class inherits a constructor from Fluent::Compat::OutputChain

Instance Method Details

#nextObject



49
50
51
52
53
54
55
56
57
# File 'lib/fluent/compat/output_chain.rb', line 49

def next
  if @array.length <= @offset
    return @chain.next
  end
  @offset += 1
  es = @array.length > @offset ? @es.dup : @es
  @array[@offset-1].emit_events(@tag, es)
  self.next
end