> I'm still working on my first "real" Ruby program... > > I'd like to use require 'etc', but not on the /etc/passwd file, but > on one I supply. Can this be done? > > The ext/etc/etc.txt file says: > getpwnam(name) searches in /etc/passwd file (or equivalent database), > > although I'm simply using Etc.passwd to iterate over all passwd > entries. I've often wondered about etc being a class instead of a module. What are other people's thoughts? Being able to do something like: p = Etc::Passwd.net('/etc/passwd') u = p.user('my_username') puts "NIS User" if u.nis? puts "NIS+ User" if u.nis_plus? and such, would be really cool for system administration stuff, IMHO. -sc -- Sean Chittenden