Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > etcライブラリ > Etcモジュール > setgrent

module function Etc.#setgrent

setgrent -> nil

/etc/group の先頭に戻ります。

このメソッドを呼び出した後 Etc.#getgrent を呼び出すと先頭のエントリを返します。

[SEE_ALSO] getgrent(3)

module Etc