lib/ldap/server/result.rb in ruby-ldapserver-0.5.3 vs lib/ldap/server/result.rb in ruby-ldapserver-0.7.0

- old
+ new

@@ -61,10 +61,10 @@ N_TO_CLASS = { 53 => UnwillingToPerform, # FIXME: please fill in the rest } - def self.[] (n) + def self.[](n) return N_TO_CLASS[n] || self end end # class ResultError end # module LDAP