# File lib/active_ldap/ldif.rb, line 847def<<(operation)
@operations<<operationend
==(other)click to toggle source
# File lib/active_ldap/ldif.rb, line 856def==(other)
super(other) and@operations==other.operationsend
add_operation(type, attribute, options, attributes)click to toggle source
# File lib/active_ldap/ldif.rb, line 851defadd_operation(type, attribute, options, attributes)
klass = self.class.const_get("#{type.to_s.capitalize}Operation")
self<<klass.new(attribute, options, attributes)
end
each(&block)click to toggle source
# File lib/active_ldap/ldif.rb, line 843defeach(&block)
@operations.each(&block)
end
Private Instance Methods
to_s_content()click to toggle source
# File lib/active_ldap/ldif.rb, line 861defto_s_contentresult = superreturnresultif@operations.empty?@operations.collectdo|operation|result<<"#{operation}-\n"endresultend