File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -69,14 +69,19 @@ def member_names
6969 end
7070 end
7171
72+ # Internal: Returns true if the object class(es) provided match a group's.
73+ def group? ( object_class )
74+ self . class . group? ( object_class )
75+ end
76+
7277 # Internal - Check if an object class includes the member names
7378 # Use `&` rathen than `include?` because both are arrays.
7479 #
7580 # NOTE: object classes are downcased by default in Net::LDAP, so this
7681 # will fail to match correctly unless we also downcase our group classes.
7782 #
7883 # Returns true if the object class includes one of the group class names.
79- def group? ( object_class )
84+ def self . group? ( object_class )
8085 !( GROUP_CLASS_NAMES . map ( &:downcase ) & object_class . map ( &:downcase ) ) . empty?
8186 end
8287
You can’t perform that action at this time.
0 commit comments