Class: GOM::Storage::Filesystem::Loader
- Inherits:
-
Object
- Object
- GOM::Storage::Filesystem::Loader
- 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
-
#files ⇒ Object
Returns the value of attribute files.
Instance Method Summary collapse
- #drafts ⇒ Object
-
#initialize(files) ⇒ Loader
constructor
A new instance of Loader.
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
#files ⇒ Object
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
#drafts ⇒ Object
12 13 14 15 16 |
# File 'lib/gom/storage/filesystem/loader.rb', line 12 def drafts @drafts = { } load_yml_files @drafts end |