From: Tanaka Akira Date: 2003-01-10T22:44:30+09:00 Subject: Re: 'borrow' Tcl's virtual file system In article <20030110133201.GM32764@panoptic.com>, Dossy writes: > Now, Dir.mkdir and File.open silently get redirected to operate on > /tmp/foo.gz instead of the REAL underlying filesystem. So, you > get a whole "virtual" filesystem inside a single file. This makes > packaging apps and distributing them simple (one file contains many > files, that can be read/written at runtime without having to unpack > them). I think the `redirection' can be implemented by method dispatch if we have FileName class. Such redirection is not required to be builtin because Ruby is object oriented. Note that open-uri provides URI::HTTP#open and URI::FTP#open. -- Tanaka Akira