We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 013982e commit 999f493Copy full SHA for 999f493
lib/net/ldap/entry.rb
@@ -59,6 +59,16 @@ class LDAP
59
#
60
# Class Net::LDAP::Entry provides convenience methods for dealing
61
# with LDAP entries.
62
+ # In addition to the methods documented below, you may access individual
63
+ # attributes of an entry simply by giving the attribute name as
64
+ # the name of a method call. For example:
65
+ # ldap.search( ... ) do |entry|
66
+ # puts "Common name: #{entry.cn}"
67
+ # puts "Email addresses:"
68
+ # entry.mail.each {|ma| puts ma}
69
+ # end
70
+ # If you use this technique to access an attribute that is not present
71
+ # in a particular Entry object, a NoMethodError exception will be raised.
72
73
#--
74
# Ugly problem to fix someday: We key off the internal hash with
0 commit comments