Etc.passwd { |struct| block } â Passwd
Etc.passwd â Passwd
Etc.passwd â Passwd
Class Public methods
Provides a convenient Ruby iterator which executes a block for each entry in the /etc/passwd file.
The code block is passed an Passwd struct.
See ::getpwent above for details.
Example:
require 'etc' Etc.passwd {|u| puts u.name + " = " + u.gecos }
Please login to continue.