Treequel::Filter::

AndComponent

class
Superclass
Treequel::Filter::Component

An 'and' filter component

Attributes

filterlist[R]

The list of filters to AND together in the filter string

Public Class Methods

anchor
new( *filterlist )

Create a new 'and' filter component with the given filterlist.

# File lib/treequel/filter.rb, line 149
def initialize( *filterlist )
        @filterlist = Treequel::Filter::FilterList.new( filterlist )
        super()
end

Public Instance Methods

anchor
add_requirement( filter )

Add an additional filter to the list of requirements

# File lib/treequel/filter.rb, line 163
def add_requirement( filter )
        @filterlist << filter
end
anchor
to_s()

Stringify the item

# File lib/treequel/filter.rb, line 158
def to_s
        return '&' + @filterlist.to_s
end