method

setpwent

ruby latest stable - Class: Etc
setpwent()
public

Resets the process of reading the /etc/passwd file, so that the next call to ::getpwent will return the first entry again.