Class: GOM::Storage::Filesystem::Loader

Inherits:
Object
  • Object
show all
Defined in:
lib/gom/storage/filesystem/loader.rb

Overview

The loader for the filesystem data that is provided by the storage adapter.

Defined Under Namespace

Classes: Builder

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(files) ⇒ Loader

Returns a new instance of Loader.



8
9
10
# File 'lib/gom/storage/filesystem/loader.rb', line 8

def initialize(files)
  @files = files
end

Instance Attribute Details

#filesObject

Returns the value of attribute files.



6
7
8
# File 'lib/gom/storage/filesystem/loader.rb', line 6

def files
  @files
end

Instance Method Details

#draftsObject



12
13
14
15
16
# File 'lib/gom/storage/filesystem/loader.rb', line 12

def drafts
  @drafts = { }
  load_yml_files
  @drafts
end