instiki/vendor/madeleine-0.7.1/lib/madeleine/files.rb
2005-01-15 20:26:54 +00:00

20 lines
288 B
Ruby
Executable file

#
# Wrapper for Ruby's file services, replaced during testing
# so we can run tests without touching a real filesystem.
#
class FileService
def open(*args)
super(*args)
end
def exist?(name)
File.exist?(name)
end
def dir_entries(name)
Dir.entries(name)
end
end