Included Modules

Class Index [+]

Quicksearch

ActiveLdap::Ldif::ModifyRecord

Attributes

operations[R]

Public Class Methods

new(dn, controls=[], operations=[]) click to toggle source
     # File lib/active_ldap/ldif.rb, line 838
838:       def initialize(dn, controls=[], operations=[])
839:         super(dn, {}, controls, "modify")
840:         @operations = operations
841:       end

Public Instance Methods

<<(operation) click to toggle source
     # File lib/active_ldap/ldif.rb, line 847
847:       def <<(operation)
848:         @operations << operation
849:       end
==(other) click to toggle source
     # File lib/active_ldap/ldif.rb, line 856
856:       def ==(other)
857:         super(other) and @operations == other.operations
858:       end
add_operation(type, attribute, options, attributes) click to toggle source
     # File lib/active_ldap/ldif.rb, line 851
851:       def add_operation(type, attribute, options, attributes)
852:         klass = self.class.const_get("#{type.to_s.capitalize}Operation")
853:         self << klass.new(attribute, options, attributes)
854:       end
each(&block) click to toggle source
     # File lib/active_ldap/ldif.rb, line 843
843:       def each(&block)
844:         @operations.each(&block)
845:       end

Private Instance Methods

to_s_content() click to toggle source
     # File lib/active_ldap/ldif.rb, line 861
861:       def to_s_content
862:         result = super
863:         return result if @operations.empty?
864:         @operations.collect do |operation|
865:           result << "#{operation}-\n"
866:         end
867:         result
868:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.