From: Tanaka Akira Date: 2013-06-25T17:54:44+09:00 Subject: [ruby-core:55644] Re: [ruby-trunk - Feature #8544][Open] OpenURI should open 'file://' URIs 2013/6/19 silasdavis (Silas Davis) : > Issue #8544 has been reported by silasdavis (Silas Davis). > However the following should produce the same output and is a URI, but fails: > > open('file:///tmp/file.txt').read {|f| puts f.read } open(uri) is impelemented as URI.parse(uri).open. If URI class has a dedicated class for file URI, such as URI::File, it is possible to implement URI::File#open. -- Tanaka Akira