Filter list component of a Treequel::Filter.
The filters in the FilterList
Create a new filter list with the given filters
in it.
# File lib/treequel/filter.rb, line 56
def initialize( *filters )
@filters = filters.flatten
end
Append operator: add the other
filter to the list.
# File lib/treequel/filter.rb, line 75
def <<( other )
@filters << other
return self
end
Return the FilterList as a string.
# File lib/treequel/filter.rb, line 69
def to_s
return self.filters.collect {|f| f.to_s }.join
end