Represents a group of users on the host system.
Groups can be retrieved by either group name or their group ID:
require "system/group" System::Group.find_by name: "staff" System::Group.find_by id: "0"
Returns the group associated with the given name.
Returns the group associated with the given ID.
Returns the group associated with the given name.
Returns the group associated with the given ID.
Returns true
if this reference is the same as other.
The group's identifier.
The group's name.
Reference
Reference
Object
Object
Returns the group associated with the given name.
Raises NotFoundError
if no such group exists.
Returns the group associated with the given ID.
Raises NotFoundError
if no such group exists.
Returns the group associated with the given name.
Returns nil
if no such group exists.
Returns the group associated with the given ID.
Returns nil
if no such group exists.
Returns true
if this reference is the same as other. Invokes same?
.
© 2012–2020 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.35.1/System/Group.html