Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
URI::LDAP#build_path_query
build_path_query
lib/uri/ldap.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/uri/ldap.rb, line 146
def build_path_query
@path = '/' + @dn
query = []
[@extensions, @filter, @scope, @attributes].each do |x|
next if !x && query.size == 0
query.unshift(x)
end
@query = query.join('?')
end
Private method to assemble query from attributes, scope, filter, and extensions.