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 48
def initialize( *filters )
@filters = filters.flatten
end
Append operator: add the other filter to the list.
# File lib/treequel/filter.rb, line 67
def <<( other )
@filters << other
return self
end
Return the FilterList as a string.
# File lib/treequel/filter.rb, line 61
def to_s
return self.filters.collect {|f| f.to_s }.join
end
| / | Search |
|---|---|
| ? | Show this help |