Building on the search example in this question, how would one use the net-ldap Gem to test whether the search() method returns no results, or some results?
Building on the search example in this question , how would one use the
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
By how it’s used in the other question you linked to, it seems to return an array, so you could just call
empty?on the result.There’s also this interesting bit of information in the documentation you linked to: