Remove File.open - it is implemented by StringIO

This commit is contained in:
Scott Taylor 2009-11-08 01:08:12 -05:00
parent 9e7e71b166
commit 15c1fd83a1

View File

@ -113,14 +113,6 @@ module FakeFS
FileSystem.find(symlink.target).to_s FileSystem.find(symlink.target).to_s
end end
def self.open(path, mode=READ_ONLY, perm = 0644)
if block_given?
yield new(path, mode, perm)
else
new(path, mode, perm)
end
end
def self.read(path) def self.read(path)
file = new(path) file = new(path)
if file.exists? if file.exists?