Class: Xail::OrFilter
- Inherits:
-
AbstractCompoundFilter
- Object
- AbstractFilter
- AbstractCompoundFilter
- Xail::OrFilter
- Defined in:
- lib/xail/filter.rb
Overview
the or filter streams the original if any component filter streams
Instance Attribute Summary
Attributes inherited from AbstractCompoundFilter
Instance Method Summary collapse
Methods inherited from AbstractCompoundFilter
Methods inherited from AbstractFilter
Constructor Details
This class inherits a constructor from Xail::AbstractCompoundFilter
Instance Method Details
#streamLine(line) ⇒ Object
130 131 132 133 134 135 136 137 138 |
# File 'lib/xail/filter.rb', line 130 def streamLine(line) @filters.each do |filter| if filter and filter.streamLine(line) return line end end return nil end |