lib/net/ldap/filter.rb
##
#--
# We got a hash of attribute values.
# Do we match the attributes?
# Return T/F, and call match recursively as necessary.
#++
We got a hash of attribute values.
Do we match the attributes.
Return T/F, and call match recursively as necessary.
We got a hash of attribute values . Do we match the attributes . Return T / F and call match recursively as necessary .
def match(entry)
    case @op
    when :eq
      if @right == "*"
        l = entry[@left] and l.length > 0
      else
        l = entry[@left] and l = Array(l) and l.index(@right)
      end
    else
      raise Net::LDAP::FilterTypeUnknownError, "Unknown filter type in match: #{@op}"
    end
  end
def match ( entry ) case @op when :eq if @right == "*" l = entry [ @left ] and l . length > 0 else l = entry [ @left ] and l = Array ( l ) and l . index ( @right ) end else raise Net :: LDAP :: FilterTypeUnknownError , "Unknown filter type in match: #{@op}" end end
We got a hash of attribute values.
We got a hash of attribute values .
entry
<not_specific>