Flowdock
method

group

Importance_1
group() public

Provides a convenient Ruby iterator which executes a block for each entry in the /etc/group file.

The code block is passed an Struct::Group struct; see getgrent above for details.

Example:

require 'etc'

Etc.group {|g|
  puts g.name + ": " + g.mem.join(', ')
}
Show source
Register or log in to add new notes.