Class: Card::Mod::Loader::SetLoader
- Inherits:
-
Card::Mod::Loader
- Object
- Card::Mod::Loader
- Card::Mod::Loader::SetLoader
- Defined in:
- lib/card/mod/loader/set_loader.rb
Overview
A SetLoader object loads all set modules for a list of mods. The mods are given by a Mod::Dirs object. SetLoader can use three different strategies to load the set modules.
Defined Under Namespace
Classes: Template
Instance Method Summary collapse
Methods inherited from Card::Mod::Loader
#initialize, load_chunks, load_dir, load_formats, load_initializers, load_mods, module_class_template
Constructor Details
This class inherits a constructor from Card::Mod::Loader
Instance Method Details
#load ⇒ Object
21 22 23 24 25 |
# File 'lib/card/mod/loader/set_loader.rb', line 21 def load super Card::Set.process_base_modules Card::Set.clean_empty_modules end |
#load_strategy_class(load_strategy) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/card/mod/loader/set_loader.rb', line 10 def load_strategy_class load_strategy case load_strategy when :tmp_files LoadStrategy::SetTmpFiles when :binding_magic LoadStrategy::SetBindingMagic else LoadStrategy::Eval end end |