I've just gotten the new Programming Ruby book, and have basically spent 
all my time for the last couple of days reading and playing.  I'm writing a 
utility to go through my java files and look for useless imports.

I've got a few questions:

1.  It seems like I've got to write an access method for class variables and
cannot use attr_reader to get one automatically created for me.  Is that 
correct?


2.  I know the command line has the "-pi.bak" flag capability, but I'd like 
to be able to control that kind of functionality w/in my program.  Python 
has a real nice library, "fileinput.py" which works well for this situation.
Does ruby have something like this already, or should I port the python 
library?

Thanks for your help,
Tom Corbin