An 'or' filter component
The list of filters to OR together in the filter string
Create a new 'or' filter component with the given
filterlist
.
# File lib/treequel/filter.rb, line 174
def initialize( *filterlist )
@filterlist = Treequel::Filter::FilterList.new( filterlist )
super()
end
Add an additional filter to the list of alternatives
# File lib/treequel/filter.rb, line 188
def add_alternation( filter )
@filterlist << filter
end
Stringify the item
# File lib/treequel/filter.rb, line 183
def to_s
return '|' + @filterlist.to_s
end