Class: Simmer::Externals::FileSystem
- Inherits:
-
Object
- Object
- Simmer::Externals::FileSystem
- Defined in:
- lib/simmer/externals/file_system.rb
Overview
Provides the shared basics of all file systems.
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(root) ⇒ FileSystem
constructor
A new instance of FileSystem.
Constructor Details
#initialize(root) ⇒ FileSystem
Returns a new instance of FileSystem.
18 19 20 21 22 |
# File 'lib/simmer/externals/file_system.rb', line 18 def initialize(root) @root = root.to_s raise ArgumentError, "root: #{root} must end in #{SUFFIX}" unless root.end_with?(SUFFIX) end |