instiki/vendor/madeleine-0.7.1/lib/madeleine/files.rb

20 lines
288 B
Ruby
Raw Normal View History

2005-01-15 21:26:54 +01:00
#
# 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