Sha256: 1e2cda05374eb9ea5eb3af8409b88767593ae802a1210d15eb61e2f2008b4ef7
Contents?: true
Size: 729 Bytes
Versions: 7
Compression:
Stored size: 729 Bytes
Contents
require_library_or_gem 'net/ldap' module Net class LDAP class Entry alias initialize_without_original_attribute_names initialize def initialize(*args) @original_attribute_names = [] initialize_without_original_attribute_names(*args) end alias aset_without_original_attribute_names []= def []=(name, value) @original_attribute_names << name aset_without_original_attribute_names(name, value) end def original_attribute_names @original_attribute_names.compact.uniq end def each_attribute attribute_names.sort_by {|name| name.to_s}.each do |name| yield name, self[name] end end end end end
Version data entries
7 entries across 7 versions & 2 rubygems