Class: FileService
- Inherits:
-
Object
- Object
- FileService
- Defined in:
- lib/madeleine/files.rb
Overview
Wrapper for Ruby’s file services, replaced during testing so we can run tests without touching a real filesystem.
Instance Method Summary collapse
Instance Method Details
#dir_entries(name) ⇒ Object
16 17 18 |
# File 'lib/madeleine/files.rb', line 16 def dir_entries(name) Dir.entries(name) end |
#exist?(name) ⇒ Boolean
12 13 14 |
# File 'lib/madeleine/files.rb', line 12 def exist?(name) File.exist?(name) end |
#open(*args) ⇒ Object
8 9 10 |
# File 'lib/madeleine/files.rb', line 8 def open(*args) super(*args) end |