Florian Gross
1/23/2005 7:41:00 PM
cyberco wrote:
>>Look for IO.read
> Thanks, Tim. I now see that the documentation of File includes a line
> saying 'is closely associated with class IO'. Now, I would look at IO
> if File extended it, but that is not the case. What's the bond between
> File and IO?
File inherits from IO:
irb(main):004:0> File.ancestors
=> [File, IO, File::Constants, Enumerable, Object, Kernel]