lib/net/ldap/filter.rb
##
# This is a private helper method for dealing with chains of ANDs and ORs
# that are longer than two. If BOTH of our branches are of the specified
# type of joining operator, then return both of them as an array (calling
# coalesce recursively). If they're not, then return an array consisting
# only of self.
This is a private helper method for dealing with chains of ANDs and ORs
that are longer than two. If BOTH of our branches are of the specified
type of joining operator, then return both of them as an array (calling
coalesce recursively). If they're not, then return an array consisting
only of self.
This is a private helper method for dealing with chains of ANDs and ORs that are longer than two . If BOTH of our branches are of the specified type of joining operator then return both of them as an array ( calling coalesce recursively ) . If they ' re not then return an array consisting only of self .
def coalesce(operator) 
    if @op == operator
      [@left.coalesce(operator), @right.coalesce(operator)]
    else
      [self]
    end
  end
def coalesce ( operator ) if @op == operator [ @left . coalesce ( operator ) , @right . coalesce ( operator ) ] else [ self ] end end
This is a private helper method for dealing with chains of ANDs and ORs
that are longer than two.
This is a private helper method for dealing with chains of ANDs and ORs that are longer than two .
#:nodoc:
operator
<not_specific>