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

module function Etc.#setpwent

setpwent -> nil

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

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

[SEE_ALSO] getpwent(3)

module Etc