Add NotImplementedErrors for missing methods on File for ruby 1.9.1

This commit is contained in:
Scott Taylor 2009-11-08 13:17:57 -05:00
parent f30beb33fe
commit fc7515fd08

View File

@ -279,6 +279,24 @@ module FakeFS
raise NotImplementedError
end
if RUBY_VERSION.to_f >= 1.9
def binmode?
raise NotImplementedError
end
def close_on_exec=(bool)
raise NotImplementedError
end
def close_on_exec?
raise NotImplementedError
end
def to_path
raise NotImplementedError
end
end
private
def check_modes!