Class: Sys::Group

Inherits:
Object
  • Object
show all
Defined in:
ext/sys/admin.c

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#newObject #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.

Overloads:

  • #new {|user| ... } ⇒ Object

    Yields:

    • (user)


31
32
33
34
35
36
# File 'ext/sys/admin.c', line 31

static VALUE group_init(VALUE self){
   if(rb_block_given_p())
      rb_yield(self);

   return self;
}

Instance Attribute Details

#gidObject

The group’s group ID

#membersObject

An array of users that are members of the group

#nameObject

The name of the group

#passwdObject

The group password, if any.