A 'present' (attribute=*) component
The default attribute to test for presence if none is specified
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
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
Stringify the component
# File lib/treequel/filter.rb, line 313
def to_s
return @attribute.to_s + '=*'
end