Treequel::Filter::

OrComponent

class
Superclass
Treequel::Filter::Component

An 'or' filter component

Attributes

filterlist[R]

The list of filters to OR together in the filter string

Public Class Methods

anchor
new( *filterlist )

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

Public Instance Methods

anchor
add_alternation( filter )

Add an additional filter to the list of alternatives

# File lib/treequel/filter.rb, line 188
def add_alternation( filter )
        @filterlist << filter
end
anchor
to_s()

Stringify the item

# File lib/treequel/filter.rb, line 183
def to_s
        return '|' + @filterlist.to_s
end