Class: Cardio::Mod::Loader::SetPatternLoader

Inherits:
Cardio::Mod::Loader show all
Defined in:
lib/cardio/mod/loader/set_pattern_loader.rb

Overview

arguably overkill, the set pattern loader makes set patterns use directory/file-aware loading much as set patterns do. Since they are so rarely added, this optimization should probably be deprecated

Instance Attribute Summary

Attributes inherited from Cardio::Mod::Loader

#mod_dirs

Instance Method Summary collapse

Methods inherited from Cardio::Mod::Loader

#initialize, #load, load_dir, load_initializers, load_mods, #parts_from_path, reload_sets

Constructor Details

This class inherits a constructor from Cardio::Mod::Loader

Instance Method Details

#each_file(&block) ⇒ Object



16
17
18
19
20
# File 'lib/cardio/mod/loader/set_pattern_loader.rb', line 16

def each_file &block
  each_mod_dir :set_pattern do |base_dir|
    each_file_in_dir base_dir, &block
  end
end

#load_strategy_class(strategy) ⇒ Object



12
13
14
# File 'lib/cardio/mod/loader/set_pattern_loader.rb', line 12

def load_strategy_class strategy
  LoadStrategy.class_for_set_pattern strategy
end

#template_classObject



8
9
10
# File 'lib/cardio/mod/loader/set_pattern_loader.rb', line 8

def template_class
  SetPatternTemplate
end