Class: Sys::Group
- Inherits:
-
Object
- Object
- Sys::Group
- Defined in:
- ext/sys/admin.c
Instance Attribute Summary collapse
-
#gid ⇒ Object
The group’s group ID.
-
#members ⇒ Object
An array of users that are members of the group.
-
#name ⇒ Object
The name of the group.
-
#passwd ⇒ Object
The group password, if any.
Instance Method Summary collapse
-
#initialize ⇒ Object
constructor
Creates and returns a Group object, which encapsulates the information typically found within an /etc/group entry, i.e.
Constructor Details
#new ⇒ Object #new {|user| ... } ⇒ Object
Creates and returns a Group object, which encapsulates the information typically found within an /etc/group entry, i.e. a struct group.
If a block is provided, yields the object back to the block.
41 42 43 44 45 46 |
# File 'ext/sys/admin.c', line 41 static VALUE group_init(VALUE self){ if(rb_block_given_p()) rb_yield(self); return self; } |
Instance Attribute Details
#gid ⇒ Object
The group’s group ID
#members ⇒ Object
An array of users that are members of the group
#name ⇒ Object
The name of the group
#passwd ⇒ Object
The group password, if any.