class Treequel::Filter::OrComponent
An 'or' filter component
Attributes
filterlist[R]
The list of filters to OR together in the filter string
Public Class Methods
new( *filterlist )
click to toggle source
Create a new 'or' filter component with the given filterlist
.
Calls superclass method
# File lib/treequel/filter.rb, line 174 def initialize( *filterlist ) @filterlist = Treequel::Filter::FilterList.new( filterlist ) super() end
Public Instance Methods
add_alternation( filter )
click to toggle source
Add an additional filter to the list of alternatives
# File lib/treequel/filter.rb, line 188 def add_alternation( filter ) @filterlist << filter end
to_s()
click to toggle source
Stringify the item
# File lib/treequel/filter.rb, line 183 def to_s return '|' + @filterlist.to_s end