From: Hugh Sasse Staff Elec Eng Date: 2000-10-10T00:35:23+09:00 Subject: [ruby-talk:5335] string streams in Ruby? Is there any way, without going through "modifying the internals", to convert Strings to look like files? This would allow me to do things like input = < while input_as_file.gets ... end within my unit tests, which would keep all the input with the tests. If this cannot be done, is there a good reason NOT to ask for this functionality to be added? I mean, is there a better way to do this? I may be thinking too much in C++. I don't really want to use Expect to work around this, although I like expect, because that requires the person running my tests to have something else installed. Hugh hgs@dmu.ac.uk