Class: Xail::FilterCascade

Inherits:
AbstractCompoundFilter show all
Defined in:
lib/xail/filter.rb

Overview

a cascade streams the next filter on rejection

Instance Attribute Summary

Attributes inherited from AbstractCompoundFilter

#filters

Instance Method Summary collapse

Methods inherited from AbstractCompoundFilter

#<<, #initialize

Methods inherited from AbstractFilter

#filterName

Constructor Details

This class inherits a constructor from Xail::AbstractCompoundFilter

Instance Method Details

#streamLine(input) ⇒ Object



87
88
89
90
91
92
93
94
95
96
# File 'lib/xail/filter.rb', line 87

def streamLine(input)
  @filters.each do |filter|
    line = filter.streamLine(input)
    if line != nil
      return line
    end
  end

  nil
end