Class: Xail::OrFilter

Inherits:
AbstractCompoundFilter show all
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

#<<, #initialize

Methods inherited from AbstractFilter

#filterName

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