Class: Ldaptic::Filter::Not

Inherits:
Abstract show all
Defined in:
lib/ldaptic/filter.rb

Instance Method Summary collapse

Methods inherited from Abstract

#&, #inspect, #to_ber, #to_s, #|, #~

Constructor Details

#initialize(object) ⇒ Not

Returns a new instance of Not.



165
166
167
# File 'lib/ldaptic/filter.rb', line 165

def initialize(object)
  @object = Ldaptic::Filter(object)
end

Instance Method Details

#processObject



168
169
170
# File 'lib/ldaptic/filter.rb', line 168

def process
  process = @object.process and "(!#{process})"
end

#to_net_ldap_filterObject

:nodoc:



171
172
173
# File 'lib/ldaptic/filter.rb', line 171

def to_net_ldap_filter #:nodoc:
  ~ @object.to_net_ldap_filter
end