Method: ActiveDirectory::Member#unjoin

Defined in:
lib/active_directory/member.rb

#unjoin(group) ⇒ Object

Remove the member from the passed Group object. Returns true if this object is not a member of the Group, or if the operation to remove it succeeded.



48
49
50
51
# File 'lib/active_directory/member.rb', line 48

def unjoin(group)
  return false unless group.is_a?(Group)
  group.remove(self)
end