Class: FileSystem

Inherits:
Object
  • Object
show all
Defined in:
lib/swineherd/filesystem/filesystems.rb

Defined Under Namespace

Classes: LocalFileSystem

Class Method Summary collapse

Class Method Details

.get(scheme, *args) ⇒ Object

A factory function that returns an instance of the requested class



6
7
8
9
10
11
12
# File 'lib/swineherd/filesystem/filesystems.rb', line 6

def self.get(scheme, *args)
  if scheme == :file
    LocalFileSystem.new()
  else
    nil
  end
end