Fixed a small edge condition relating to adding values to Net::LDAP::Entry.

This commit is contained in:
blackhedd 2006-05-01 12:19:16 +00:00
parent 4d4423ec25
commit 5d349b43f6

View file

@ -46,10 +46,14 @@ class LDAP
@myhash[sym] = value
end
#--
# We have to deal with this one as we do []=
# because this one and not the other one gets called
# in formulations like entry["CN"] << cn.
#
def [] name
#unless name.is_a?(Symbol)
# name = name.to_s.downcase.intern
#end
name = name.to_s.downcase.intern unless name.is_a?(Symbol)
@myhash[name]
end