Treequel::Filter::

PresentItemComponent

class
Superclass
Treequel::Filter::ItemComponent

A 'present' (attribute=*) component

Constants

DEFAULT_ATTRIBUTE

The default attribute to test for presence if none is specified

Public Class Methods

anchor
new( attribute=DEFAULT_ATTRIBUTE )

Create a new 'presence' item filter component for the given attribute.

# File lib/treequel/filter.rb, line 307
def initialize( attribute=DEFAULT_ATTRIBUTE )
        @attribute = attribute
end

Public Instance Methods

anchor
promiscuous?()

Returns true, indicating that this component in a filter will match every entry if its attribute is 'objectClass'.

# File lib/treequel/filter.rb, line 320
def promiscuous?
        return @attribute.to_sym == DEFAULT_ATTRIBUTE
end
anchor
to_s()

Stringify the component

# File lib/treequel/filter.rb, line 313
def to_s
        return @attribute.to_s + '=*'
end