Class: Staticky::Files::Adapter

Inherits:
Object
  • Object
show all
Defined in:
lib/staticky/files/adapter.rb

Class Method Summary collapse

Class Method Details

.call(memory:) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/staticky/files/adapter.rb', line 6

def self.call(memory:)
  if memory
    require_relative "memory_file_system"
    MemoryFileSystem.new
  else
    require_relative "file_system"
    FileSystem.new
  end
end