Treequel::Filter::

FilterList

class
Superclass
Object
Extended With
Loggability

Filter list component of a Treequel::Filter.

Attributes

filters[R]

The filters in the FilterList

Public Class Methods

anchor
new( *filters )

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

Public Instance Methods

anchor
<<( other )

Append operator: add the other filter to the list.

# File lib/treequel/filter.rb, line 75
def <<( other )
        @filters << other
        return self
end
anchor
to_s()

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