From 999f493863e6000d05d455bd21c73a61a119bd66 Mon Sep 17 00:00:00 2001 From: blackhedd Date: Thu, 4 May 2006 12:30:29 +0000 Subject: [PATCH] Added some documentation. --- lib/net/ldap/entry.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/net/ldap/entry.rb b/lib/net/ldap/entry.rb index be7798b..f5354de 100644 --- a/lib/net/ldap/entry.rb +++ b/lib/net/ldap/entry.rb @@ -59,6 +59,16 @@ class LDAP # # Class Net::LDAP::Entry provides convenience methods for dealing # with LDAP entries. + # In addition to the methods documented below, you may access individual + # attributes of an entry simply by giving the attribute name as + # the name of a method call. For example: + # ldap.search( ... ) do |entry| + # puts "Common name: #{entry.cn}" + # puts "Email addresses:" + # entry.mail.each {|ma| puts ma} + # end + # If you use this technique to access an attribute that is not present + # in a particular Entry object, a NoMethodError exception will be raised. # #-- # Ugly problem to fix someday: We key off the internal hash with