Class Index [+]

Quicksearch

ActiveLdap::Ldif::Attributes

Public Instance Methods

encode(attributes) click to toggle source
    # File lib/active_ldap/ldif.rb, line 9
 9:       def encode(attributes)
10:         return "" if attributes.empty?
11: 
12:         result = ""
13:         normalize(attributes).sort_by {|name,| name}.each do |name, values|
14:           values.each do |options, value|
15:             result << Attribute.encode([name, *options].join(";"), value)
16:           end
17:         end
18:         result
19:       end
normalize(attributes) click to toggle source
    # File lib/active_ldap/ldif.rb, line 21
21:       def normalize(attributes)
22:         result = {}
23:         attributes.each do |name, values|
24:           result[name] = Attribute.normalize_value(values).sort
25:         end
26:         result
27:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.