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 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
128 129 130 131 132 133 134 135 136 |
# File 'lib/xail/filter.rb', line 128 def streamLine(line) @filters.each do |filter| if filter and filter.streamLine(line) return line end end return nil end |