class ActiveLdap::Ldif::ModifyRecord
def <<(operation)
def <<(operation) @operations << operation end
def ==(other)
def ==(other) super(other) and @operations == other.operations end
def add_operation(type, attribute, options, attributes)
def add_operation(type, attribute, options, attributes) klass = self.class.const_get("#{type.to_s.capitalize}Operation") self << klass.new(attribute, options, attributes) end
def each(&block)
def each(&block) @operations.each(&block) end
def initialize(dn, controls=[], operations=[])
def initialize(dn, controls=[], operations=[]) super(dn, {}, controls, "modify") @operations = operations end
def to_s_content
def to_s_content result = super return result if @operations.empty? @operations.collect do |operation| result << "#{operation}-\n" end result end