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 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(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