Class: Ldaptic::Filter::Abstract
- Inherits:
-
Object
- Object
- Ldaptic::Filter::Abstract
- Defined in:
- lib/ldaptic/filter.rb
Overview
The filter class from which all others derive.
Instance Method Summary collapse
-
#&(other) ⇒ Object
Combine two filters with a logical AND.
- #inspect ⇒ Object
-
#to_ber ⇒ Object
:nodoc:.
-
#to_net_ldap_filter ⇒ Object
:nodoc:.
-
#to_s ⇒ Object
(also: #to_str)
Generates the filter as a string.
-
#|(other) ⇒ Object
Combine two filters with a logical OR.
-
#~ ⇒ Object
Negate a filter.
Instance Method Details
#&(other) ⇒ Object
Combine two filters with a logical AND.
42 43 44 |
# File 'lib/ldaptic/filter.rb', line 42 def &(other) And.new(self, other) end |
#inspect ⇒ Object
65 66 67 68 69 70 71 |
# File 'lib/ldaptic/filter.rb', line 65 def inspect if string = process "#<#{Ldaptic::Filter.inspect} #{string}>" else "#<#{Ldaptic::Filter.inspect} invalid>" end end |
#to_ber ⇒ Object
:nodoc:
77 78 79 |
# File 'lib/ldaptic/filter.rb', line 77 def to_ber #:nodoc: to_net_ldap_filter.to_ber end |
#to_net_ldap_filter ⇒ Object
:nodoc:
73 74 75 |
# File 'lib/ldaptic/filter.rb', line 73 def to_net_ldap_filter #:nodoc: Net::LDAP::Filter.construct(process) end |
#to_s ⇒ Object Also known as: to_str
Generates the filter as a string.
59 60 61 |
# File 'lib/ldaptic/filter.rb', line 59 def to_s process || "(objectClass=*)" end |