class Net::LDAP::Filter

def ==(filter)

Equality operator for filters, useful primarily for constructing unit tests.
#
def ==(filter)
  # 20100320 AZ: We need to come up with a better way of doing this. This
  # is just nasty.
  str = "[@op,@left,@right]"
  self.instance_eval(str) == filter.instance_eval(str)
end