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 39ec12a commit fe40fa1Copy full SHA for fe40fa1
lib/net/ldap/entry.rb
@@ -143,11 +143,19 @@ def method_missing *args, &block # :nodoc:
143
s = args[0]
144
if attribute_names.include?(s)
145
self[s]
146
+ elsif s.to_s[-1] == 61 and s.to_s.length > 1
147
+ value = args[1] or raise RuntimeError.new( "unable to set value" )
148
+ value = [value] unless value.is_a?(Array)
149
+ name = s.to_s[0..-2].intern
150
+ self[name] = value
151
else
152
raise NoMethodError.new( "undefined method '#{s}'" )
153
end
154
155
156
+ def write
157
+ end
158
+
159
end # class Entry
160
161
0 commit comments