From: Eleanor McHugh Date: 2009-11-10T04:19:07+09:00 Subject: Re: FileString - request for comments On 9 Nov 2009, at 16:49, Ralph Shnelvar wrote: > Robert, > > RK> I am still trying to wrap my head around the question whether > hiding > RK> file IO behind a String API is a good idea. > > As the PickAxe book points out, by having file i/o represented by a > String ... that is, making it irrelevant whether one is talking to a > String or a File ... makes for some nice unit testing. Using a given representation just because it's unit testing friendly isn't necessarily a good idea... Ellie Eleanor McHugh Games With Brains http://slides.games-with-brains.net ---- raise ArgumentError unless @reality.responds_to? :reason