class Treequel::Filter::FilterList

Filter list component of a Treequel::Filter.

Attributes

filters[R]

The filters in the FilterList

Public Class Methods

new( *filters ) click to toggle source

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

Public Instance Methods

<<( other ) click to toggle source

Append operator: add the other filter to the list.

# File lib/treequel/filter.rb, line 67
def <<( other )
        @filters << other
        return self
end
to_s() click to toggle source

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